Set up comprehensive frontend testing infrastructure
- 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>
This commit is contained in:
		
							
								
								
									
										37
									
								
								frontend/node_modules/bs-logger/dist/logger/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								frontend/node_modules/bs-logger/dist/logger/index.d.ts
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,37 @@ | ||||
| import { LogContext } from './context'; | ||||
| import { LogMessageTranslator } from './message'; | ||||
| import { LogTarget } from './target'; | ||||
| interface LogMethod { | ||||
|     (message: string, ...args: any[]): void; | ||||
|     (context: LogContext, message: string, ...args: any[]): void; | ||||
|     isEmptyFunction?: boolean; | ||||
| } | ||||
| interface LogChildMethod { | ||||
|     (context: LogContext): Logger; | ||||
|     (translate: LogMessageTranslator): Logger; | ||||
| } | ||||
| interface LogWrapMethod { | ||||
|     <F extends (...args: any[]) => any>(func: F): F; | ||||
|     <F extends (...args: any[]) => any>(message: string, func: F): F; | ||||
|     <F extends (...args: any[]) => any>(context: LogContext, message: string, func: F): F; | ||||
|     <F extends (...args: any[]) => any>(level: number, message: string, func: F): F; | ||||
| } | ||||
| interface Logger extends LogMethod { | ||||
|     trace: LogMethod; | ||||
|     debug: LogMethod; | ||||
|     info: LogMethod; | ||||
|     warn: LogMethod; | ||||
|     error: LogMethod; | ||||
|     fatal: LogMethod; | ||||
|     child: LogChildMethod; | ||||
|     wrap: LogWrapMethod; | ||||
| } | ||||
| declare const resetSequence: (next?: number) => void; | ||||
| declare const lastSequenceNumber: () => number; | ||||
| interface CreateLoggerOptions { | ||||
|     context?: LogContext; | ||||
|     translate?: LogMessageTranslator; | ||||
|     targets?: string | LogTarget[]; | ||||
| } | ||||
| declare const createLogger: ({ context: baseContext, targets: logTargets, translate: logTranslator, }?: CreateLoggerOptions) => Logger; | ||||
| export { createLogger, lastSequenceNumber, Logger, LogMethod, resetSequence, CreateLoggerOptions }; | ||||
		Reference in New Issue
	
	Block a user
	 anthonyrawlins
					anthonyrawlins