| | |
| | | */ |
| | | /// <reference types="node" /> |
| | | import type { Context } 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'; |
| | |
| | | }; |
| | | }; |
| | | declare class JSDOMEnvironment implements JestEnvironment<number> { |
| | | dom: JSDOM | null; |
| | | private dom; |
| | | fakeTimers: LegacyFakeTimers<number> | null; |
| | | fakeTimersModern: ModernFakeTimers | null; |
| | | global: Win; |
| | | errorEventListener: ((event: Event & { |
| | | error: Error; |
| | | }) => void) | null; |
| | | private errorEventListener; |
| | | moduleMocker: ModuleMocker | null; |
| | | constructor(config: Config.ProjectConfig, options?: EnvironmentContext); |
| | | setup(): Promise<void>; |