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

@jest/environment

Package Overview
Dependencies
Maintainers
7
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/environment - npm Package Compare versions

Comparing version 26.3.0 to 26.5.0

6

build/index.d.ts

@@ -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"
}
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