Generate Tests
Target: $1 $2
- Read the file and understand:
- What framework is used (Jest, Vitest, Mocha, pytest, Go test, etc.) - check existing test files for patterns
- The function/class signatures, types, return values
- Existing tests (if any) to match style
- Identify test cases:
- Happy path (normal usage)
- Edge cases (null, undefined, empty, boundary values)
- Error cases (thrown exceptions, rejected promises)
- Async behavior if applicable
- Write tests following the project's existing test style.
- Place the test file next to the source or in
__tests__/- match project convention.
- Show a summary: N tests covering X scenarios.