mirror of
https://github.com/duthaho/claudekit.git
synced 2026-07-16 12:45:17 +03:00
feat: add hooks and rules
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user