1.0.3 • Published 4 years ago

@mockyeah/test-server-mocha v1.0.3

Weekly downloads
12
License
MIT
Repository
github
Last release
4 years ago

@mockyeah/test-server-mocha

Mocha unit test setup for mockyeah server, a powerful service mocking, recording, and playback utility.

npm

More at https://mockyeah.js.org/Packages/mockyeah-test-mocha.

All you need to do is:

import mockyeah from '@mockyeah/test-server-mocha';

describe('test', () => {
  it('should work', () =>
    mockyeah
      .get('/')
      .expect()
      .once()
      .run(fetch(mockyeah.server.url))
      .verify());
});

License

@mockyeah/test-server-mocha is released under the MIT License.