#Mocha

Open-source projects categorized as Mocha | Edit details

Top 22 Mocha Open-Source Projects

  • GitHub repo nodebestpractices

    :white_check_mark: The Node.js best practices list (April 2021)

    Project mention: Any resources on best structuring practices for Express projects? | reddit.com/r/node | 2021-04-29

    node best practices

  • GitHub repo mocha

    ☕️ simple, flexible, fun javascript test framework for node.js & the browser

    Project mention: Iniciar en el mundo del TESTING AUTOMATIZADO ✍ | dev.to | 2021-05-11
  • GitHub repo Enzyme

    JavaScript Testing utilities for React

    Project mention: Can anyone recommend any tech (coding) companies to work for based in Bristol? | reddit.com/r/bristol | 2021-04-22

    Enzyme is a testing utility that runs on the jest framework, for unit testing your React code and components. https://enzymejs.github.io/enzyme/

  • GitHub repo karma

    Spectacular Test Runner for JavaScript

  • GitHub repo javascript-testing-best-practices

    📗🌐 🚢 Comprehensive and exhaustive JavaScript & Node.js testing best practices (May 2021)

    Project mention: NodeJs Best practices | reddit.com/r/node | 2021-04-16

    His JS testing best practices is gold too https://github.com/goldbergyoni/javascript-testing-best-practices

  • GitHub repo WebdriverIO

    Next-gen browser and mobile automation test framework for Node.js

    Project mention: Looking for some advise/direction on a new testing framework | reddit.com/r/softwaretesting | 2021-05-04

    So here's where I am seeking out some help regarding choosing a new test framework. I am currently eyeing the following products after a couple days of light research: Puppeteer, Playwright, codeceptJS, Allure (reporting), JEST, webdriver.io, and robotframework. I know we don't need all of these, but I am being led to believe that some of these might work best paired together in some combination, but I can't figure out what the correct combination of these products would be. Here's my impression so far:

  • GitHub repo node-coveralls

    lcov posting to coveralls.io

    Project mention: Code Coverage Analysis Using Codecov and Codefresh | dev.to | 2020-12-22

    In our case, we are going to use jest. Alternatively, you could use Mocha in combination with several tools; more information is provided in their example. Have a look at their documentation for other languages to get an idea of which testing tools are supported.

  • GitHub repo mochawesome

    A Gorgeous HTML/CSS Reporter for Mocha.js

    Project mention: CSS Deep | dev.to | 2021-02-26

    adamgruber/mochawesome - A Gorgeous HTML/CSS Reporter for Mocha.js

  • GitHub repo jest-codemods

    Codemods for migrating to Jest https://github.com/facebook/jest 👾

    Project mention: What UI testing framework do you use and what do you like/dislike about it? | reddit.com/r/Angular2 | 2021-04-29

    jest-codemods helped us a lot moving from Jasmine to Jest, removes most of the manual work

  • GitHub repo pg-mem

    An in memory postgres DB instance for your unit tests

    Project mention: Haskell as a first timer - Am I missing something ? Or is something broken ? | dev.to | 2021-02-03

    Dont get me wrong: I am trying to contribute to opensource as well, so I get that supporting small projects can be demanding. There's nothing wrong in not spending your weekends on OS. But not asking for help, nor specifying that a project is unmaintained, nor even answering issues & pull requests for years feels just wrong.

  • GitHub repo Mochify

    ☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver

  • GitHub repo root-cause

    🔍 Root Cause is a tool for troubleshooting Puppeteer and Playwright tests. 🔎

    Project mention: Root Cause: Troubleshoot Puppeteer & Playwright Tests with ease | dev.to | 2020-09-10

    So please try it, and write to us via GitHub issue, GitHub discussion or by email: [email protected], [email protected]

  • GitHub repo hardhat-gas-reporter

    Gas usage per unit test. Average gas usage per method. (eth-gas-reporter for Hardhat)

    Project mention: Per-method gas reporter without test suites | reddit.com/r/ethdev | 2021-04-11

    I can get a neat report with hardhat-gas-reporter for my own contracts, but I don't know how to do that for third-parties if they don't happen to be using Hardhat too - or if they have no test suites at all.

  • GitHub repo currency-api

    A demo project on how to test a node/express app with Mocha, Nock and proxyquire (MNP) and code coverage with nyc/istanbul.

    Project mention: Docker build example: how to go from slow to fast docker builds | dev.to | 2020-12-27

    Let’s look at the docker below, this innocent-looking docker file is taken from a Node Js API. It has one major issue we will uncover as we proceed:

  • GitHub repo instant-mocha

    ☕️ Build tests with Webpack and run with Mocha in one command

    Project mention: instant-mocha: build tests with Webpack and run with Mocha in one command | reddit.com/r/javascript | 2021-04-27
  • GitHub repo bs-mocha

  • GitHub repo FireShare

    🔥A Full-Stack, Pub-Sub, Real-time secure file sharing system. Using NodeJS, ReactJS, SocketIO, MongoDB. Chai, WebdriverIO for testing.

  • GitHub repo sumo-queue

    Queue Data Structure Implementation. Use it for large arrays.

    Project mention: What have you been working on recently? [January 02, 2021] | reddit.com/r/learnprogramming | 2021-01-01

    Created a tiny package to handle large arrays with queue implementation: https://github.com/sanmak/sumo-queue. Published npm package as well: https://www.npmjs.com/package/sumo-queue

  • GitHub repo node-test-runners-benchmark

    Node test runners performance comparison

    Project mention: Node.js test runners performance comparison | news.ycombinator.com | 2020-12-29
  • GitHub repo with-local-tmp-dir

    Creates a temporary folder inside cwd, cds inside the folder, runs a function, and removes the folder. Especially useful for testing.

    Project mention: How to Write File-Based Tests With Real Files | dev.to | 2021-04-21

    Why not use real files for testing instead of mocking? I built an NPM package called with-local-tmp-dir that basically creates a temporary subfolder inside cwd, cds into it, runs a function, and cds back to the previous cwd afterwards. In this function you can create files and pretty much anything, run your unit under test. Afterwards the folder is removed and everything is cleaned up. You actually do not solely need to use it for tests, you can use it anywhere, but it's mostly useful for tests.

  • GitHub repo chai-json-validation

    Chai Plugin for validation JSON schema

    Project mention: Testing API's JSON response with chai | dev.to | 2021-04-11
  • GitHub repo Testing-WebComponents

    Testing Web Components with Karma, Mocha & Chai.

    Project mention: Testing Web Components with Karma, Mocha & Chai | dev.to | 2021-01-21

    Codes

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2021-05-11.

Index

What are some of the best open-source Mocha projects? This list will help you:

Project Stars
1 nodebestpractices 64,493
2 mocha 20,476
3 Enzyme 19,539
4 karma 11,498
5 javascript-testing-best-practices 11,179
6 WebdriverIO 6,673
7 node-coveralls 1,028
8 mochawesome 875
9 jest-codemods 735
10 pg-mem 398
11 Mochify 339
12 root-cause 207
13 hardhat-gas-reporter 48
14 currency-api 17
15 instant-mocha 12
16 bs-mocha 6
17 FireShare 4
18 sumo-queue 2
19 node-test-runners-benchmark 2
20 with-local-tmp-dir 0
21 chai-json-validation 0
22 Testing-WebComponents 0