@mockyeah/test-mocha
If you haven't read Getting Started - Unit Tets, you can start there too.
If you're using the Mocha unit test framework, try our @mockyeah/test-mocha
package to ease setup & use.
All you need to do is:
$ npm add --save-dev @mockyeah/test-mocha
Then, in your test files:
import mockyeah from '@mockyeah/test-mocha';
describe('test', () => {
it('should work', () => {
mockyeah.get('/');
});
});