jest-mock
Advanced tools
Comparing version 28.0.0-alpha.7 to 28.0.0-alpha.8
@@ -177,2 +177,6 @@ /** | ||
/** | ||
* List of all the function contexts that have been applied to calls to the mock. | ||
*/ | ||
contexts: Array<ThisParameterType<T>>; | ||
/** | ||
* List of the call order indexes of the mock. Jest is indexing the order of | ||
@@ -344,4 +348,4 @@ * invocations of all mocks in a test file. The index is starting with `1`. | ||
declare type UnknownFunction = (...args: Array<unknown>) => unknown; | ||
export declare type UnknownFunction = (...args: Array<unknown>) => unknown; | ||
export {}; |
@@ -338,2 +338,3 @@ 'use strict'; | ||
calls: [], | ||
contexts: [], | ||
instances: [], | ||
@@ -375,2 +376,3 @@ invocationCallOrder: [], | ||
mockState.instances.push(this); | ||
mockState.contexts.push(this); | ||
mockState.calls.push(args); // Create and record an "incomplete" mock result immediately upon | ||
@@ -377,0 +379,0 @@ // calling rather than waiting for the mock to return. This avoids |
{ | ||
"name": "jest-mock", | ||
"version": "28.0.0-alpha.7", | ||
"version": "28.0.0-alpha.8", | ||
"repository": { | ||
@@ -20,3 +20,3 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/types": "^28.0.0-alpha.7", | ||
"@jest/types": "^28.0.0-alpha.8", | ||
"@types/node": "*" | ||
@@ -34,3 +34,3 @@ }, | ||
}, | ||
"gitHead": "06f58f8ca70abc9c09d554967935b58ce85c48d6" | ||
"gitHead": "d915e7df92b220dbe6e124585ba6459838a6c41c" | ||
} |
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
40856
1082
Updated@jest/types@^28.0.0-alpha.8