Goal
Replace an ambiguous testing instruction with guidance an agent can apply consistently.
Repository Context
This React application uses Vitest for unit tests.
Code exampleMarkdown
dashboard/
├── src/
│ ├── components/
│ ├── features/
│ └── utils/
├── tests/
├── package.json
└── AGENTS.md
The repository follows this testing policy:
- Behavior changes should have relevant tests added or updated.
- Existing unrelated tests do not need to be rewritten.
- Tests run with
pnpm test.
Current AGENTS.md
Code exampleMarkdown
# Project Instructions
## Development
- Use `pnpm`.
- Keep feature-specific code inside `src/features`.
## Testing
- Test things properly.
## Validation
- Run `pnpm test` before completing behavior changes.
Your Task
Rewrite the ambiguous testing instruction so it clearly tells the agent when tests should be added or updated.
Do not introduce requirements to rewrite unrelated tests.