 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>
		
			
				
	
	
		
			43 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| export declare const xmlReplacer: RegExp;
 | |
| export declare const getCodePoint: (c: string, index: number) => number;
 | |
| /**
 | |
|  * Encodes all non-ASCII characters, as well as characters not valid in XML
 | |
|  * documents using XML entities.
 | |
|  *
 | |
|  * If a character has no equivalent entity, a
 | |
|  * numeric hexadecimal reference (eg. `ü`) will be used.
 | |
|  */
 | |
| export declare function encodeXML(input: string): string;
 | |
| /**
 | |
|  * Encodes all non-ASCII characters, as well as characters not valid in XML
 | |
|  * documents using numeric hexadecimal reference (eg. `ü`).
 | |
|  *
 | |
|  * Have a look at `escapeUTF8` if you want a more concise output at the expense
 | |
|  * of reduced transportability.
 | |
|  *
 | |
|  * @param data String to escape.
 | |
|  */
 | |
| export declare const escape: typeof encodeXML;
 | |
| /**
 | |
|  * Encodes all characters not valid in XML documents using XML entities.
 | |
|  *
 | |
|  * Note that the output will be character-set dependent.
 | |
|  *
 | |
|  * @param data String to escape.
 | |
|  */
 | |
| export declare const escapeUTF8: (data: string) => string;
 | |
| /**
 | |
|  * Encodes all characters that have to be escaped in HTML attributes,
 | |
|  * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
 | |
|  *
 | |
|  * @param data String to escape.
 | |
|  */
 | |
| export declare const escapeAttribute: (data: string) => string;
 | |
| /**
 | |
|  * Encodes all characters that have to be escaped in HTML text,
 | |
|  * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
 | |
|  *
 | |
|  * @param data String to escape.
 | |
|  */
 | |
| export declare const escapeText: (data: string) => string;
 | |
| //# sourceMappingURL=escape.d.ts.map
 |