@types/jest
Advanced tools
Comparing version 15.1.32 to 16.0.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Jest 15.1.1 | ||
// Type definitions for Jest 16.0.0 | ||
// Project: http://facebook.github.io/jest/ | ||
@@ -29,19 +29,21 @@ // Definitions by: Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay> | ||
declare namespace jest { | ||
function addMatchers(matchers: jasmine.CustomMatcherFactories): void; | ||
function addMatchers(matchers: jasmine.CustomMatcherFactories): typeof jest; | ||
/** Disables automatic mocking in the module loader. */ | ||
function autoMockOff(): void; | ||
function autoMockOff(): typeof jest; | ||
/** Enables automatic mocking in the module loader. */ | ||
function autoMockOn(): void; | ||
function autoMockOn(): typeof jest; | ||
/** Clears the mock.calls and mock.instances properties of all mocks. Equivalent to calling .mockClear() on every mocked function. */ | ||
function clearAllMocks(): typeof jest; | ||
/** Removes any pending timers from the timer system. If any timers have been scheduled, they will be cleared and will never have the opportunity to execute in the future. */ | ||
function clearAllTimers(): void; | ||
function clearAllTimers(): typeof jest; | ||
/** Indicates that the module system should never return a mocked version of the specified module, including all of the specificied module's dependencies. */ | ||
function deepUnmock(moduleName: string): void; | ||
function deepUnmock(moduleName: string): typeof jest; | ||
/** Disables automatic mocking in the module loader. */ | ||
function disableAutomock(): void; | ||
function disableAutomock(): typeof jest; | ||
/** Mocks a module with an auto-mocked version when it is being required. */ | ||
function doMock(moduleName: string): void; | ||
function doMock(moduleName: string): typeof jest; | ||
/** 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). */ | ||
function dontMock(moduleName: string): void; | ||
function dontMock(moduleName: string): typeof jest; | ||
/** Enables automatic mocking in the module loader. */ | ||
function enableAutomock(): void; | ||
function enableAutomock(): typeof jest; | ||
/** Creates a mock function. Optionally takes a mock implementation. */ | ||
@@ -54,24 +56,26 @@ function fn<T>(implementation?: Function): Mock<T>; | ||
/** Mocks a module with an auto-mocked version when it is being required. */ | ||
function mock(moduleName: string, factory?: any, options?: MockOptions): void; | ||
function mock(moduleName: string, factory?: any, options?: MockOptions): typeof jest; | ||
/** Resets the module registry - the cache of all required modules. This is useful to isolate modules where local state might conflict between tests. */ | ||
function resetModuleRegistry(): void; | ||
function resetModuleRegistry(): typeof jest; | ||
/** Resets the module registry - the cache of all required modules. This is useful to isolate modules where local state might conflict between tests. */ | ||
function resetModules(): void; | ||
function resetModules(): typeof jest; | ||
/** Exhausts tasks queued by setImmediate(). */ | ||
function runAllImmediates(): void; | ||
function runAllImmediates(): typeof jest; | ||
/** Exhausts the micro-task queue (usually interfaced in node via process.nextTick). */ | ||
function runAllTicks(): void; | ||
function runAllTicks(): typeof jest; | ||
/** Exhausts the macro-task queue (i.e., all tasks queued by setTimeout() and setInterval()). */ | ||
function runAllTimers(): void; | ||
function runAllTimers(): typeof jest; | ||
/** Executes only the macro-tasks that are currently pending (i.e., only the tasks that have been queued by setTimeout() or setInterval() up to this point). | ||
* If any of the currently pending macro-tasks schedule new macro-tasks, those new tasks will not be executed by this call. */ | ||
function runOnlyPendingTimers(): void; | ||
function runOnlyPendingTimers(): typeof jest; | ||
/** Executes only the macro task queue (i.e. all tasks queued by setTimeout() or setInterval() and setImmediate()). */ | ||
function runTimersToTime(msToRun: number): typeof jest; | ||
/** Explicitly supplies the mock object that the module system should return for the specified module. */ | ||
function setMock<T>(moduleName: string, moduleExports: T): void; | ||
function setMock<T>(moduleName: string, moduleExports: T): typeof jest; | ||
/** 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). */ | ||
function unmock(moduleName: string): void; | ||
function unmock(moduleName: string): typeof jest; | ||
/** Instructs Jest to use fake versions of the standard timer functions. */ | ||
function useFakeTimers(): void; | ||
function useFakeTimers(): typeof jest; | ||
/** Instructs Jest to use the real versions of the standard timer functions. */ | ||
function useRealTimers(): void; | ||
function useRealTimers(): typeof jest; | ||
@@ -103,2 +107,3 @@ interface MockOptions { | ||
skip: It; | ||
concurrent: It; | ||
} | ||
@@ -130,2 +135,3 @@ | ||
toContain(expected: any): void; | ||
toContainEqual(expected: any): void; | ||
toEqual(expected: any): void; | ||
@@ -139,2 +145,3 @@ toHaveBeenCalled(): boolean; | ||
toThrowError(error?: string | Constructable | RegExp): void; | ||
toThrowErrorMatchingSnapshot(): void; | ||
} | ||
@@ -141,0 +148,0 @@ |
{ | ||
"name": "@types/jest", | ||
"version": "15.1.32", | ||
"description": "TypeScript definitions for Jest 15.1.1", | ||
"version": "16.0.0", | ||
"description": "TypeScript definitions for Jest 16.0.0", | ||
"license": "MIT", | ||
@@ -14,4 +14,5 @@ "author": "Asana <https://asana.com>, Ivo Stratev <https://github.com/NoHomey>, jwbay <https://github.com/jwbay>", | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "a9b6ffd31b389cdb17f14d94e68c1b88467acaaf8e600fcd3f6a2cdf3534fb93" | ||
"typesPublisherContentHash": "f8ed97da943e045270318ddc5c97326414e93d083449e2cdfb078f5415a3340a" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for Jest 15.1.1 (http://facebook.github.io/jest/). | ||
This package contains type definitions for Jest 16.0.0 (http://facebook.github.io/jest/). | ||
@@ -12,3 +12,3 @@ # Details | ||
Additional Details | ||
* Last updated: Wed, 21 Sep 2016 20:25:54 GMT | ||
* Last updated: Mon, 14 Nov 2016 19:34:56 GMT | ||
* File structure: Global | ||
@@ -15,0 +15,0 @@ * Library Dependencies: none |
@@ -6,5 +6,5 @@ { | ||
"moduleDependencies": [], | ||
"libraryMajorVersion": "15", | ||
"libraryMinorVersion": "1", | ||
"libraryName": "Jest 15.1.1", | ||
"libraryMajorVersion": 16, | ||
"libraryMinorVersion": 0, | ||
"libraryName": "Jest 16.0.0", | ||
"typingsPackageName": "jest", | ||
@@ -40,3 +40,3 @@ "projectName": "http://facebook.github.io/jest/", | ||
"hasPackageJson": false, | ||
"contentHash": "a9b6ffd31b389cdb17f14d94e68c1b88467acaaf8e600fcd3f6a2cdf3534fb93" | ||
"contentHash": "f8ed97da943e045270318ddc5c97326414e93d083449e2cdfb078f5415a3340a" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16100
307
0