fetch-mock-jest
fetch-mock-jest copied to clipboard
Jest wrapper for fetch-mock, a comprehensive stub for fetch
I have a fetch method in our production code that creates `new FormData()` I suspect this is the reason I keep getting `Unmatched POST to [url]` error. How do I...
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2. Commits 699c459 3.1.2 2f2b5ff fix: trim pattern 25d7c0d 3.1.1 55dda29 fix: treat nocase:true as always having magic 5e1fb8d 3.1.0 f8145c5 Add 'allowWindowsEscape' option 570e8b1...
I have a spec that looks something like this ``` expect(fetchMock).toHaveFetched(`/my/cool/api`, { method: 'POST', body: { message: 'this is incorrect', rating: 'thumbs_up' }, }); ``` Where the body is incorrect...
Bumps [ws](https://github.com/websockets/ws) from 7.4.0 to 7.5.10. Release notes Sourced from ws's releases. 7.5.10 Bug fixes Backported e55e5106 to the 7.x release line (22c28763). 7.5.9 Bug fixes Backported bc8bd34e to the...
Removes [path-to-regexp](https://github.com/pillarjs/path-to-regexp). It's no longer used after updating ancestor dependency [fetch-mock](https://github.com/wheresrhys/fetch-mock/tree/HEAD/packages/fetch-mock). These dependencies need to be updated together. Removes `path-to-regexp` Updates `fetch-mock` from 9.11.0 to 11.1.3 Release notes Sourced from...