@neuralegion/nexmockdeprecated

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

Usage no npm install needed!

<script type="module">
  import neuralegionNexmock from 'https://cdn.skypack.dev/@neuralegion/nexmock';
</script>

README

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:

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