mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-11 20:54:56 +03:00
20 lines
617 B
Markdown
20 lines
617 B
Markdown
---
|
|
paths:
|
|
- "**/*.test.*"
|
|
- "**/*.spec.*"
|
|
- "**/tests/**"
|
|
- "**/test_*"
|
|
- "**/__tests__/**"
|
|
---
|
|
|
|
# Test Writing Rules
|
|
|
|
- Python test naming: `test_[function]_[scenario]_[expected]`
|
|
- TypeScript test naming: `describe('[Component]', () => { it('should [behavior]') })`
|
|
- Each test file must have at least one happy path and one error case
|
|
- Mock external dependencies, not internal modules
|
|
- Use factories/fixtures over inline test data
|
|
- Never commit `.skip()` or `.only()` — remove before pushing
|
|
- Minimum coverage: 80% overall, 95% for critical paths
|
|
- Prefer pytest for Python, vitest for TypeScript
|