- Override the 'types' array to only include 'node' types
- Exclude 'types' directory and any nested types directories from build
- Add comment explaining the types override rationale
- This prevents TypeScript from looking for vitest/globals and test-env types
The issue was that tsconfig.build.json was inheriting test-related type
definitions from tsconfig.json which aren't available in the minimal
Docker build environment.
Code reviewed and enhanced based on suggestions:
- Added '**/types' to exclude pattern for comprehensive exclusion
- Added explanatory comment for future maintainers
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove Jest and all related packages
- Install Vitest with coverage support
- Create vitest.config.ts with path aliases
- Set up global test configuration
- Migrate all 6 test files to Vitest syntax
- Update TypeScript configuration for better Vitest support
- Create separate tsconfig.build.json for clean builds
- Fix all import/module issues in tests
- All 68 tests passing successfully
- Current coverage baseline: 2.45%
Phase 1 of testing suite improvement complete.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>