/** * Shared Test Setup Utilities * Eliminates duplication across Jest setup files * Provides standardized test environment configuration */ /** * Options for test setup configuration */ export interface TestSetupOptions { /** Set test environment variable */ setTestEnvironment?: boolean; /** Configure jest global reference */ configureJestGlobal?: boolean; /** Provide CommonJS require polyfill for ESM tests */ provideRequirePolyfill?: boolean; /** Set default jest timeout */ setJestTimeout?: number; /** Configure mock cleanup */ configureMockCleanup?: boolean; /** Additional setup functions to run */ additionalSetup?: (() => void)[]; /** React-specific polyfills */ reactPolyfills?: boolean; } /** * Test setup context for tracking setup state */ interface TestSetupContext { jestGlobalConfigured: boolean; requirePolyfillProvided: boolean; testEnvironmentSet: boolean; mockCleanupConfigured: boolean; } /** * Create comprehensive Jest setup with all standard configurations * * @param options - Setup configuration options */ export declare function createJestSetup(options?: TestSetupOptions): void; /** * Create minimal Jest setup for basic testing */ export declare function createMinimalJestSetup(): void; /** * Create Jest setup for TypeScript ESM projects */ export declare function createTypeScriptESMSetup(): void; /** * Create Jest setup for React projects */ export declare function createReactJestSetup(): void; /** * Create Jest setup for demo projects */ export declare function createDemoJestSetup(): void; /** * Reset setup state (useful for testing) */ export declare function resetSetupState(): void; /** * Get current setup state (useful for debugging) */ export declare function getSetupState(): TestSetupContext; /** * Check if setup is complete */ export declare function isSetupComplete(): boolean; /** * Test setup factory interface */ export declare const testSetupFactory: { create: typeof createJestSetup; createMinimal: typeof createMinimalJestSetup; createTypeScriptESM: typeof createTypeScriptESMSetup; createReact: typeof createReactJestSetup; createDemo: typeof createDemoJestSetup; resetState: typeof resetSetupState; getState: typeof getSetupState; isComplete: typeof isSetupComplete; }; export default testSetupFactory; //# sourceMappingURL=testSetupFactory.d.ts.map