Socket
Book a DemoInstallSign in
Socket

@neuralegion/nexmock

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neuralegion/nexmock

Mock http requests made using fetch (or isomorphic-fetch)

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
2
Created
Source

nexmock

Mock http requests made using fetch based on fetch-mock

node version licence

fetchMock.mock('http://example.com', 200);
const res = await fetch('http://example.com');
assert(res.ok);
fetchMock.restore();

Requirements

fetch-mock requires the following to run:

  • Node.js 8+ for full feature operation
  • npm (normally comes with Node.js)
  • Either of the following

Documentation and Usage

See the fork website and example

License

nexmock is licensed under the MIT license. Copyright © 2019, NeuraLegion

Third-party license

fetch-mock is licensed under the MIT license. Copyright © 2019, Rhys Evans

Keywords

fetch

FAQs

Package last updated on 13 Sep 2019

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