fetch-mock-jest icon indicating copy to clipboard operation
fetch-mock-jest copied to clipboard

Jest wrapper for fetch-mock, a comprehensive stub for fetch

Results 35 fetch-mock-jest issues
Sort by recently updated
recently updated
newest added

Asserting against a certain output, especially a body, is currently very cumbersome. **Scenario: I want to mock a POST request with a specific body, and i want to piece together...

Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7. Release notes Sourced from node-fetch's releases. v2.6.7 Security patch release Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th...

dependencies

Fixes bad edit introduced in https://github.com/wheresrhys/fetch-mock-jest/pull/16

The README says: > All the built in jest function inspection assertions can be used, e.g. `expect(fetchMock).toHaveBeenCalledWith('http://example.com')`. But that doesn't work, indeed it looks like the mock always receives `undefined`...

bug

After upgrading our codebase to jest 26 and this library to 1.5.1, our tests that used the `.toHaveBeenCalled` assertions stopped working. It appears that the `.mock` property is never updated...

bug

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6. Commits 7efb22a 1.2.6 ef88b93 security notice for additional prototype pollution issue c2b9819 isConstructorOrProto adapted from PR bc8ecee test from prototype pollution PR See full...

dependencies

I'm trying to use `fetch-mock-jest` on a project I'm working on but as soon as I import it I get the error `TypeError: Cannot read property 'bind' of undefined` with...

bug
types

There are 3 failing tests, and it seems to be around using the sandbox mode. I'm a bit out of my depth when it gets to what's happening with the...

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5. Commits See full diff in compare view [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tmpl&package-manager=npm_and_yarn&previous-version=1.0.4&new-version=1.0.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...

dependencies

Trying to use the latest version of fetch-mock-jest in my project, but seeing the below error: ![image](https://user-images.githubusercontent.com/6808927/100108428-c3071680-2e38-11eb-980d-a677204a2fd6.png)

bug
types