Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/jest

Package Overview
Dependencies
Maintainers
1
Versions
209
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/jest - npm Package Compare versions

Comparing version 24.0.5 to 24.0.6

31

jest/index.d.ts

@@ -981,16 +981,25 @@ // Type definitions for Jest 24.0

/**
* Represents the result of a single call to a mock function.
* Represents the result of a single call to a mock function with a return value.
*/
interface MockResult {
/**
* True if the function threw.
* False if the function returned.
*/
isThrow: boolean;
/**
* The value that was either thrown or returned by the function.
*/
interface MockResultReturn<T> {
type: 'return';
value: T;
}
/**
* Represents the result of a single incomplete call to a mock function.
*/
interface MockResultIncomplete {
type: 'incomplete';
value: undefined;
}
/**
* Represents the result of a single call to a mock function with a thrown error.
*/
interface MockResultThrow {
type: 'throw';
value: any;
}
type MockResult<T> = MockResultReturn<T> | MockResultThrow | MockResultIncomplete;
interface MockContext<T, Y extends any[]> {

@@ -1003,3 +1012,3 @@ calls: Y[];

*/
results: MockResult[];
results: Array<MockResult<T>>;
}

@@ -1006,0 +1015,0 @@ }

{
"name": "@types/jest",
"version": "24.0.5",
"version": "24.0.6",
"description": "TypeScript definitions for Jest",

@@ -107,4 +107,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "df7210c53a7c283d6c6943737091da1ff8adce47bdf5f2adad9e2acddf9d53ee",
"typesPublisherContentHash": "03f141da8450442e611ef5a8052e30d68e6c1cb671732ffbabea0d36aa47cccb",
"typeScriptVersion": "3.0"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Thu, 14 Feb 2019 21:55:11 GMT
* Last updated: Mon, 18 Feb 2019 03:07:53 GMT
* Dependencies: @types/jest-diff

@@ -14,0 +14,0 @@ * Global values: afterAll, afterEach, beforeAll, beforeEach, describe, expect, fail, fdescribe, fit, it, jasmine, jest, pending, spyOn, test, xdescribe, xit, xtest

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