mirror of https://github.com/buster-so/buster.git
claude fix for unit testing
This commit is contained in:
parent
c0745bc0c2
commit
2fbe815c27
18
CLAUDE.md
18
CLAUDE.md
|
@ -70,8 +70,19 @@ pnpm run check:fix packages/ai
|
|||
```
|
||||
|
||||
### 5. Run Tests with Vitest
|
||||
|
||||
**Important**: Always run unit tests before completing any task to ensure code changes don't break existing functionality.
|
||||
|
||||
```bash
|
||||
# Run all tests
|
||||
# Run unit tests (excludes integration tests) - REQUIRED before task completion
|
||||
pnpm run test:unit
|
||||
pnpm run test:unit --filter=@buster/ai # For specific package
|
||||
|
||||
# Run integration tests (only when requested by user)
|
||||
pnpm run test:integration
|
||||
pnpm run test:integration --filter=@buster/ai # For specific package
|
||||
|
||||
# Run all tests (unit + integration)
|
||||
pnpm run test
|
||||
|
||||
# Run tests for specific package
|
||||
|
@ -84,6 +95,11 @@ pnpm run test path/to/file.test.ts
|
|||
pnpm run test:watch
|
||||
```
|
||||
|
||||
**Testing Guidelines**:
|
||||
- Unit tests (`*.test.ts`) - Run these before marking any task as complete
|
||||
- Integration tests (`*.int.test.ts`) - Only run when explicitly requested by the user
|
||||
- Integration tests are automatically run in CI/CD pipelines
|
||||
|
||||
## Code Quality Standards
|
||||
|
||||
### TypeScript Configuration
|
||||
|
|
Loading…
Reference in New Issue