jest-mock
Advanced tools
Comparing version 29.2.1 to 29.2.2
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42153
1153