🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

jest-environment-node

Package Overview
Dependencies
Maintainers
5
Versions
296
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-node - npm Package Compare versions

Comparing version
30.2.0
to
30.3.0
+9
-9
package.json
{
"name": "jest-environment-node",
"version": "30.2.0",
"version": "30.3.0",
"repository": {

@@ -22,12 +22,12 @@ "type": "git",

"dependencies": {
"@jest/environment": "30.2.0",
"@jest/fake-timers": "30.2.0",
"@jest/types": "30.2.0",
"@jest/environment": "30.3.0",
"@jest/fake-timers": "30.3.0",
"@jest/types": "30.3.0",
"@types/node": "*",
"jest-mock": "30.2.0",
"jest-util": "30.2.0",
"jest-validate": "30.2.0"
"jest-mock": "30.3.0",
"jest-util": "30.3.0",
"jest-validate": "30.3.0"
},
"devDependencies": {
"@jest/test-utils": "30.2.0",
"@jest/test-utils": "30.3.0",
"clsx": "^2.1.1"

@@ -48,3 +48,3 @@ },

},
"gitHead": "855864e3f9751366455246790be2bf912d4d0dac"
"gitHead": "efb59c2e81083f8dc941f20d6d20a3af2dc8d068"
}
import { Context } from "vm";
import { LegacyFakeTimers, ModernFakeTimers } from "@jest/fake-timers";
import { ModuleMocker } from "jest-mock";
import { EnvironmentContext, JestEnvironment, JestEnvironmentConfig } from "@jest/environment";
import { Global } from "@jest/types";
//#region src/index.d.ts
type Timer = {
id: number;
ref: () => Timer;
unref: () => Timer;
};
declare class NodeEnvironment implements JestEnvironment<Timer> {
context: Context | null;
fakeTimers: LegacyFakeTimers<Timer> | null;
fakeTimersModern: ModernFakeTimers | null;
global: Global.Global;
moduleMocker: ModuleMocker | null;
customExportConditions: string[];
private readonly _configuredExportConditions?;
private _globalProxy;
constructor(config: JestEnvironmentConfig, _context: EnvironmentContext);
setup(): Promise<void>;
teardown(): Promise<void>;
exportConditions(): Array<string>;
getVmContext(): Context | null;
}
declare const TestEnvironment: typeof NodeEnvironment;
//#endregion
export { TestEnvironment, NodeEnvironment as default };