@types/jest
Advanced tools
Comparing version 19.2.1 to 19.2.2
// Type definitions for Jest 19.2.0 | ||
// Project: http://facebook.github.io/jest/ | ||
// Definitions by: Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay>, Alexey Svetliakov <https://github.com/asvetliakov> | ||
// Definitions by: Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay>, Alexey Svetliakov <https://github.com/asvetliakov>, Alex Jover Morales <https://github.com/alexjoverm> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -80,2 +80,4 @@ // TypeScript Version: 2.1 | ||
function setMock<T>(moduleName: string, moduleExports: T): typeof jest; | ||
/** Creates a mock function similar to jest.fn but also tracks calls to object[methodName] */ | ||
function spyOn<T extends {}, M extends keyof T>(object: T, method: M): SpyInstance<T[M]>; | ||
/** Indicates that the module system should never return a mocked version of the specified module from require() (e.g. that it should always return the real module). */ | ||
@@ -249,2 +251,6 @@ function unmock(moduleName: string): typeof jest; | ||
interface SpyInstance<T> extends MockInstance<T> { | ||
mockRestore(): void; | ||
} | ||
/** | ||
@@ -251,0 +257,0 @@ * Wrap module with mock definitions |
{ | ||
"name": "@types/jest", | ||
"version": "19.2.1", | ||
"version": "19.2.2", | ||
"description": "TypeScript definitions for Jest", | ||
@@ -22,2 +22,6 @@ "license": "MIT", | ||
"url": "https://github.com/asvetliakov" | ||
}, | ||
{ | ||
"name": "Alex Jover Morales", | ||
"url": "https://github.com/alexjoverm" | ||
} | ||
@@ -33,4 +37,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "a4769cd503e84b71894c604b1b408dc655aede99e7430f10654b41c0c474b282", | ||
"typesPublisherContentHash": "48f37ffe5a5e211dfb4b7b74e24de1bc9f5c8a53e30b7f397eff0a043c797030", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sat, 11 Mar 2017 01:36:05 GMT | ||
* Last updated: Mon, 13 Mar 2017 17:09:17 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: afterAll, afterEach, beforeAll, beforeEach, describe, expect, fail, fdescribe, fit, it, jasmine, jest, pending, spyOn, test, xdescribe, xit, xtest | ||
# Credits | ||
These definitions were written by Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay>, Alexey Svetliakov <https://github.com/asvetliakov>. | ||
These definitions were written by Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay>, Alexey Svetliakov <https://github.com/asvetliakov>, Alex Jover Morales <https://github.com/alexjoverm>. |
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
23074
380