@mockyeah/test-mocha
v1.0.3
Published
Mocha unit test setup for mockyeah request mocking utility.
Downloads
47
Readme
@mockyeah/test-mocha
Mocha unit test setup for mockyeah, a powerful service mocking, recording, and playback utility.
More at https://mockyeah.js.org/Packages/mockyeah-test-mocha.
All you need to do is:
import mockyeah from '@mockyeah/test-mocha';
describe('test', () => {
it('should work', () =>
mockyeah
.get('/')
.expect()
.once()
.run(fetch('/'))
.verify());
});
License
@mockyeah/test-mocha is released under the MIT License.