Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
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 28.0.0-alpha.7 to 28.0.0-alpha.8

6

build/index.d.ts

@@ -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

6

package.json
{
"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"
}
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