Writing Tests Use this skill when the user asks to add tests to existing code, improve test coverage, or write tests for a specific file or module. Steps 1. Detect the test setup — check what's already configured: Look for config files: , , , . Check for existing test files to understand the project's test patterns and conventions. 2. If no test runner exists — set one up: Add a script to : 3. Analyze the target code — read the file(s) to test and identify: - Public API : exported functions, classes, components, hooks - Code paths : conditionals, error handling, edge cases - Dependencies : ex…