@mockyeah/test-mocha

1.0.3 • Public • Published

@mockyeah/test-mocha

Mocha unit test setup for mockyeah, 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-mocha';

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

License

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

Package Sidebar

Install

npm i @mockyeah/test-mocha

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

3.49 kB

Total Files

4

Last publish

Collaborators

  • andersdjohnson
  • ryanricard