Top 22 Mocha Open-Source Projects
: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
Scout APM - Leading-edge performance monitoring starting at $39/month. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
Enzyme is a testing utility that runs on the jest framework, for unit testing your React code and components. https://enzymejs.github.io/enzyme/
Next-gen browser and mobile automation test framework for Node.jsProject 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:
lcov posting to coveralls.ioProject 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.
A Gorgeous HTML/CSS Reporter for Mocha.jsProject mention: CSS Deep | dev.to | 2021-02-26
adamgruber/mochawesome - A Gorgeous HTML/CSS Reporter for Mocha.js
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
An in memory postgres DB instance for your unit testsProject 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.
☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
🔍 Root Cause is a tool for troubleshooting Puppeteer and Playwright tests. 🔎
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.
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:
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
Node test runners performance comparisonProject mention: Node.js test runners performance comparison | news.ycombinator.com | 2020-12-29
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.
Chai Plugin for validation JSON schemaProject mention: Testing API's JSON response with chai | dev.to | 2021-04-11
Testing Web Components with Karma, Mocha & Chai.Project mention: Testing Web Components with Karma, Mocha & Chai | dev.to | 2021-01-21
What are some of the best open-source Mocha projects? This list will help you: