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