This article references features of the Mocha testing library available from v8.2.0
onwards.
At LeaseLock, we take pride in our codebase’s ~93% test coverage. Despite being a small team, we rarely introduce new functionality without accompanying tests — this rule has served us well by keeping us away from silly mistakes. At the time of writing, we have just over 3,000 test cases in our test suite powered by Mocha and Chai.
While most of our tests are rapid-fire unit tests, there are a significant number of integration and end-to-end tests that hit our test database. …
Software Engineer at LeaseLock