@types/jest
Advanced tools
Comparing version 24.0.5 to 24.0.6
@@ -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 |
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
68722
1627