Updating NPM dependencies
This commit is contained in:
15
node_modules/jest-environment-node/build/index.d.ts
generated
vendored
15
node_modules/jest-environment-node/build/index.d.ts
generated
vendored
@@ -5,11 +5,11 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import { Script, Context } from 'vm';
|
||||
import { Global, Config } from '@jest/types';
|
||||
import { Context, Script } from 'vm';
|
||||
import type { JestEnvironment } from '@jest/environment';
|
||||
import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
|
||||
import type { Config, Global } from '@jest/types';
|
||||
import { ModuleMocker } from 'jest-mock';
|
||||
import { JestFakeTimers as FakeTimers } from '@jest/fake-timers';
|
||||
import { JestEnvironment } from '@jest/environment';
|
||||
declare type Timer = {
|
||||
id: number;
|
||||
ref: () => Timer;
|
||||
@@ -17,13 +17,14 @@ declare type Timer = {
|
||||
};
|
||||
declare class NodeEnvironment implements JestEnvironment {
|
||||
context: Context | null;
|
||||
fakeTimers: FakeTimers<Timer> | null;
|
||||
fakeTimers: LegacyFakeTimers<Timer> | null;
|
||||
fakeTimersModern: ModernFakeTimers | null;
|
||||
global: Global.Global;
|
||||
moduleMocker: ModuleMocker | null;
|
||||
constructor(config: Config.ProjectConfig);
|
||||
setup(): Promise<void>;
|
||||
teardown(): Promise<void>;
|
||||
runScript(script: Script): any;
|
||||
runScript<T = unknown>(script: Script): T | null;
|
||||
getVmContext(): Context | null;
|
||||
}
|
||||
export = NodeEnvironment;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Reference in New Issue
Block a user