Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -5,12 +5,12 @@
* LICENSE file in the root directory of this source tree.
*/
/// <reference types="node" />
import { Script } from 'vm';
import { Global, Config } from '@jest/types';
import { ModuleMocker } from 'jest-mock';
import { JestFakeTimers as FakeTimers } from '@jest/fake-timers';
import { JestEnvironment, EnvironmentContext } from '@jest/environment';
import type { Context, Script } from 'vm';
import { JSDOM } from 'jsdom';
import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
import type { Config, Global } from '@jest/types';
import { ModuleMocker } from 'jest-mock';
declare type Win = Window & Global.Global & {
Error: {
stackTraceLimit: number;
@@ -18,7 +18,8 @@ declare type Win = Window & Global.Global & {
};
declare class JSDOMEnvironment implements JestEnvironment {
dom: JSDOM | null;
fakeTimers: FakeTimers<number> | null;
fakeTimers: LegacyFakeTimers<number> | null;
fakeTimersModern: ModernFakeTimers | null;
global: Win;
errorEventListener: ((event: Event & {
error: Error;
@@ -27,7 +28,7 @@ declare class JSDOMEnvironment implements JestEnvironment {
constructor(config: Config.ProjectConfig, options?: EnvironmentContext);
setup(): Promise<void>;
teardown(): Promise<void>;
runScript(script: Script): any;
runScript<T = unknown>(script: Script): T | null;
getVmContext(): Context | null;
}
export = JSDOMEnvironment;
//# sourceMappingURL=index.d.ts.map