Add node modules and compiled JavaScript from main
This commit is contained in:
parent
d893f27da9
commit
4b42a5ec78
6750 changed files with 1745644 additions and 10860 deletions
34
node_modules/jest-environment-jsdom/build/index.d.ts
generated
vendored
Normal file
34
node_modules/jest-environment-jsdom/build/index.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
/// <reference types="node" />
|
||||
import type { Context, Script } from 'vm';
|
||||
import type { Config, Global } from '@jest/types';
|
||||
import { ModuleMocker } from 'jest-mock';
|
||||
import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';
|
||||
import type { EnvironmentContext, JestEnvironment } from '@jest/environment';
|
||||
import { JSDOM } from 'jsdom';
|
||||
declare type Win = Window & Global.Global & {
|
||||
Error: {
|
||||
stackTraceLimit: number;
|
||||
};
|
||||
};
|
||||
declare class JSDOMEnvironment implements JestEnvironment {
|
||||
dom: JSDOM | null;
|
||||
fakeTimers: LegacyFakeTimers<number> | null;
|
||||
fakeTimersModern: ModernFakeTimers | null;
|
||||
global: Win;
|
||||
errorEventListener: ((event: Event & {
|
||||
error: Error;
|
||||
}) => void) | null;
|
||||
moduleMocker: ModuleMocker | null;
|
||||
constructor(config: Config.ProjectConfig, options?: EnvironmentContext);
|
||||
setup(): Promise<void>;
|
||||
teardown(): Promise<void>;
|
||||
runScript<T = unknown>(script: Script): T | null;
|
||||
getVmContext(): Context | null;
|
||||
}
|
||||
export = JSDOMEnvironment;
|
Loading…
Add table
Add a link
Reference in a new issue