Socket
Socket
Sign inDemoInstall

jest-mock

Package Overview
Dependencies
Maintainers
7
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 26.5.0 to 26.5.2

9

build/index.d.ts

@@ -45,8 +45,9 @@ /**

mockReturnValueOnce(value: T): this;
mockResolvedValue(value: T): this;
mockResolvedValueOnce(value: T): this;
mockRejectedValue(value: T): this;
mockRejectedValueOnce(value: T): this;
mockResolvedValue(value: Unpromisify<T>): this;
mockResolvedValueOnce(value: Unpromisify<T>): this;
mockRejectedValue(value: unknown): this;
mockRejectedValueOnce(value: unknown): this;
}
}
declare type Unpromisify<T> = T extends Promise<infer R> ? R : never;
/**

@@ -53,0 +54,0 @@ * Possible types of a MockFunctionResult.

{
"name": "jest-mock",
"version": "26.5.0",
"version": "26.5.2",
"repository": {

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

"dependencies": {
"@jest/types": "^26.5.0",
"@jest/types": "^26.5.2",
"@types/node": "*"

@@ -23,3 +23,3 @@ },

},
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3"
"gitHead": "d2bacceb51e7f05c9cb6d764d5cd886a2fd71267"
}
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