Socket
Socket
Sign inDemoInstall

jest-mock

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-mock - npm Package Compare versions

Comparing version 29.2.1 to 29.2.2

16

build/index.js

@@ -434,5 +434,9 @@ 'use strict';

f.mockResolvedValueOnce = value =>
f.mockImplementationOnce(() => Promise.resolve(value));
f.mockImplementationOnce(() =>
this._environmentGlobal.Promise.resolve(value)
);
f.mockRejectedValueOnce = value =>
f.mockImplementationOnce(() => Promise.reject(value));
f.mockImplementationOnce(() =>
this._environmentGlobal.Promise.reject(value)
);
f.mockReturnValue = value =>

@@ -442,5 +446,9 @@ // next function call will return specified return value or this one

f.mockResolvedValue = value =>
f.mockImplementation(() => Promise.resolve(value));
f.mockImplementation(() =>
this._environmentGlobal.Promise.resolve(value)
);
f.mockRejectedValue = value =>
f.mockImplementation(() => Promise.reject(value));
f.mockImplementation(() =>
this._environmentGlobal.Promise.reject(value)
);
f.mockImplementationOnce = fn => {

@@ -447,0 +455,0 @@ // next function call will use this mock implementation return value

{
"name": "jest-mock",
"version": "29.2.1",
"version": "29.2.2",
"repository": {

@@ -34,3 +34,3 @@ "type": "git",

},
"gitHead": "4551c0fdd4d25b7206824957c7bcc6baf61e63bf"
"gitHead": "0a8edbe0ac434394a16cc173a03ff54a9cc50e41"
}
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