 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>
		
			
				
	
	
		
			25 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| EJS Embedded JavaScript templates
 | |
| {Usage}: ejs [options ...] template-file [data variables ...]
 | |
| 
 | |
| {Options}:
 | |
|   -o,     --output-file FILE            Write the rendered output to FILE rather than stdout.
 | |
|   -f,     --data-file FILE              Must be JSON-formatted. Use parsed input from FILE as data for rendering.
 | |
|   -i,     --data-input STRING           Must be JSON-formatted and URI-encoded. Use parsed input from STRING as data for rendering.
 | |
|   -m,     --delimiter CHARACTER         Use CHARACTER with angle brackets for open/close (defaults to %).
 | |
|   -p,     --open-delimiter CHARACTER    Use CHARACTER instead of left angle bracket to open.
 | |
|   -c,     --close-delimiter CHARACTER   Use CHARACTER instead of right angle bracket to close.
 | |
|   -s,     --strict                      When set to `true`, generated function is in strict mode
 | |
|   -n      --no-with                     Use 'locals' object for vars rather than using `with` (implies --strict).
 | |
|   -l      --locals-name                 Name to use for the object storing local variables when not using `with`.
 | |
|   -w      --rm-whitespace               Remove all safe-to-remove whitespace, including leading and trailing whitespace.
 | |
|   -d      --debug                       Outputs generated function body
 | |
|   -h,     --help                        Display this help message.
 | |
|   -V/v,   --version                     Display the EJS version.
 | |
| 
 | |
| {Examples}:
 | |
|   ejs -m $ ./test/fixtures/user.ejs -f ./user_data.json
 | |
|   ejs -m $ ./test/fixtures/user.ejs name=Lerxst
 | |
|   ejs -p [ -c ] ./template_file.ejs -o ./output.html
 | |
|   ejs -n -l _ ./some_template.ejs -f ./data_file.json
 | |
|   ejs -w ./template_with_whitspace.ejs -o ./output_file.html
 |