Files
claude-hud/tui/vitest.config.ts
Jarrod Watts c51e054066 feat: Add vitest testing infrastructure with context tracker tests
- Add vitest and @testing-library/react
- Create vitest.config.ts
- Add test scripts to package.json
- Write comprehensive tests for ContextTracker:
  - Token estimation
  - Event processing
  - Health status calculation
  - Reset functionality

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-02 13:35:37 +11:00

13 lines
243 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
include: ['src/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
},
},
});