CLAUDE.md · CLAUDE.md (Project)
Testing Preferences
Define how Claude Code should write and run tests
testingquality
Template content
# Testing - Write tests with [vitest/jest/pytest] - Use descriptive test names: "should [expected behavior] when [condition]" - Prefer integration tests over unit tests for API routes - Mock external services, never mock internal modules - Run tests before committing: `npm test` - Minimum coverage: 80% for new code # Test Structure - Place tests next to source files as `*.test.ts` - Use `describe` blocks to group related tests - Use `beforeEach` for shared setup, avoid `beforeAll`
Use this template in the editor
Open PromptEditor.io to customize this template, save it, and inject it into any AI chat.
Open the editor