Socket
Socket
Sign inDemoInstall

fetch-mock-jest

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-mock-jest - npm Package Compare versions

Comparing version 0.1.3 to 0.2.1

LICENSE

2

package.json
{
"name": "fetch-mock-jest",
"version": "0.1.3",
"version": "0.2.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "fetch-mock-jest.js",

@@ -22,3 +22,3 @@ # fetch-mock-jest

All the built in jest function inspection assertions can be used, e.g. `expect(fetchMock).toHaveBeenCalledWith('http://example.com')`.
All the built in jest function inspection assertions can be used, e.g. `expect(fetchMock).toHaveBeenCalledWith('http://example.com')`.

@@ -45,3 +45,4 @@ `fetch.mockClear()` can be used to reset the call history

These would also be useful jest extensions:
- `toHaveFetched`
- `toHaveRespondedWith({status, body, headers})` (using objectMatching semantics)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc