 aacb45156b
			
		
	
	aacb45156b
	
	
	
		
			
			- Install Jest for unit testing with React Testing Library - Install Playwright for end-to-end testing - Configure Jest with proper TypeScript support and module mapping - Create test setup files and utilities for both unit and e2e tests Components: * Jest configuration with coverage thresholds * Playwright configuration with browser automation * Unit tests for LoginForm, AuthContext, and useSocketIO hook * E2E tests for authentication, dashboard, and agents workflows * GitHub Actions workflow for automated testing * Mock data and API utilities for consistent testing * Test documentation with best practices Testing features: - Unit tests with 70% coverage threshold - E2E tests with API mocking and user journey testing - CI/CD integration for automated test runs - Cross-browser testing support with Playwright - Authentication system testing end-to-end 🚀 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { TsRunner } from './constants.js';
 | |
| import type { AnyFn, GlobalShim, StdioChunk, SynckitOptions } from './types.js';
 | |
| export declare const isFile: (path: string) => boolean;
 | |
| export declare const dataUrl: (code: string) => import("url").URL;
 | |
| export declare const hasRequireFlag: (execArgv: string[]) => boolean;
 | |
| export declare const hasImportFlag: (execArgv: string[]) => boolean;
 | |
| export declare const hasLoaderFlag: (execArgv: string[]) => boolean;
 | |
| export declare const setupTsRunner: (workerPath: string, { execArgv, tsRunner, }?: {
 | |
|     execArgv?: string[];
 | |
|     tsRunner?: TsRunner;
 | |
| }) => {
 | |
|     ext: string;
 | |
|     isTs: boolean;
 | |
|     jsUseEsm: boolean;
 | |
|     tsRunner: TsRunner | undefined;
 | |
|     tsUseEsm: boolean;
 | |
|     workerPath: string;
 | |
|     pnpLoaderPath: string | undefined;
 | |
|     execArgv: string[];
 | |
| };
 | |
| export declare const md5Hash: (text: string) => string;
 | |
| export declare const encodeImportModule: (moduleNameOrGlobalShim: GlobalShim | string, type?: "import" | "require") => string;
 | |
| export declare const generateGlobals: (workerPath: string, globalShims: GlobalShim[], type?: "import" | "require") => string;
 | |
| export declare function extractProperties<T extends object>(object: T): T;
 | |
| export declare function extractProperties<T>(object?: T): T | undefined;
 | |
| export declare function startWorkerThread<T extends AnyFn, R = Awaited<ReturnType<T>>>(workerPath: string, { timeout, execArgv, tsRunner, transferList, globalShims, }?: SynckitOptions): (...args: Parameters<T>) => R;
 | |
| export declare const overrideStdio: (stdio: StdioChunk[]) => void;
 |