← Prompting Templates
Write Unit Tests
Generate tests for a function.
# Write Unit Tests
**Prompt**
> Write unit tests for the function below using [framework]. Cover normal cases, edge cases and error cases. Name each test descriptively.
**Fill in**
- Function: [paste]
- Framework
**Tips**
- State the expected behavior
- Ask for missing edge cases