import { Circus } from '@jest/types' ; import { JestProcessManagerOptions } from 'jest-process-manager' ; export type TestEnvironment = 'playwright' ; export type TestServerName = 'next' | 'docs' | 'storybook-react' ; export type PlaywrightBrowserName = 'firefox' | 'chromium' | 'webkit' ; interface BaseTestServer { environment : TestEnvironment ; testMatch : string [ ] ; url : string ; name : string ; } interface PlaywrightTestServer extends BaseTestServer { environment : 'playwright' ; config : JestProcessManagerOptions ; name : TestServerName ; } export type TestServer = PlaywrightTestServer ; /**
 * Declare the globals used throughout tests
 */ declare global { const jestCircus ; /**
     * The active server.
     */ const __SERVER__ ; namespace NodeJS { interface ProcessEnv { default E2E_BROWSER ? : PlaywrightBrowserName ; default E2E_MODE ? : 'development' | 'production' ; default E2E_SERVER ? : TestServerName ; default E2E_ENVIRONMENT ? : TestEnvironment ; default E2E_DEBUG ? : string ; default E2E_COVERAGE ? : string ; } } }