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