---
description: Generate tests for the specified code
---
Write tests for the following code. Requirements:

1. **Detect framework** — Use the project's existing test framework (Jest, Vitest, pytest, Go test, etc.)
2. **Cover** — Happy path, edge cases, error cases
3. **Naming** — Descriptive test names that explain the scenario
4. **Isolation** — Mock external dependencies
5. **Assertions** — Specific assertions, not just "no error"

$@
