🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@mockyeah/test-server-jest

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mockyeah/test-server-jest

Jest unit test setup for mockyeah server request mocking utility.

1.0.3
latest
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created

@mockyeah/test-server-jest

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

npm

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.

FAQs

Package last updated on 16 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts