@jest/environment
Advanced tools
Comparing version 26.3.0 to 26.5.0
@@ -19,3 +19,3 @@ /** | ||
}>; | ||
export declare type ModuleWrapper = (this: Module['exports'], module: Module, exports: Module['exports'], require: Module['require'], __dirname: string, __filename: Module['filename'], global: Global.Global, jest: Jest, ...extraGlobals: Array<Global.Global[keyof Global.Global]>) => unknown; | ||
export declare type ModuleWrapper = (this: Module['exports'], module: Module, exports: Module['exports'], require: Module['require'], __dirname: string, __filename: Module['filename'], global: Global.Global, jest?: Jest, ...extraGlobals: Array<Global.Global[keyof Global.Global]>) => unknown; | ||
export declare class JestEnvironment { | ||
@@ -43,3 +43,3 @@ constructor(config: Config.ProjectConfig, context?: EnvironmentContext); | ||
*/ | ||
addMatchers(matchers: Record<string, any>): void; | ||
addMatchers(matchers: Record<string, unknown>): void; | ||
/** | ||
@@ -123,3 +123,3 @@ * Advances all timers by the needed milliseconds so that only the next timeouts/intervals will run. | ||
*/ | ||
isMockFunction(fn: Function): fn is ReturnType<JestMockFn>; | ||
isMockFunction(fn: (...args: Array<any>) => unknown): fn is ReturnType<JestMockFn>; | ||
/** | ||
@@ -126,0 +126,0 @@ * Mocks a module with an auto-mocked version when it is being required. |
{ | ||
"name": "@jest/environment", | ||
"version": "26.3.0", | ||
"version": "26.5.0", | ||
"repository": { | ||
@@ -13,6 +13,6 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/fake-timers": "^26.3.0", | ||
"@jest/types": "^26.3.0", | ||
"@jest/fake-timers": "^26.5.0", | ||
"@jest/types": "^26.5.0", | ||
"@types/node": "*", | ||
"jest-mock": "^26.3.0" | ||
"jest-mock": "^26.5.0" | ||
}, | ||
@@ -25,3 +25,3 @@ "engines": { | ||
}, | ||
"gitHead": "3a7e06fe855515a848241bb06a6f6e117847443d" | ||
"gitHead": "68d1b1b638bc7464c2794a957c1b894de7da2ee3" | ||
} |
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
13031
Updated@jest/fake-timers@^26.5.0
Updated@jest/types@^26.5.0
Updatedjest-mock@^26.5.0