Files
snippet-pastebin/tests/setup.ts
johndoe6345789 0011a2527a test: All 283 quality-validator tests passing - 100% success rate
- Fixed Jest configuration to discover tests in tests/ directory
- Added tests/ root directory to jest.config.ts
- Fixed 2 test calculation errors in scoring and analyzer tests
- All 5 test modules now passing:
  * types.test.ts (25 tests)
  * index.test.ts (32 tests)
  * analyzers.test.ts (91 tests)
  * scoring-reporters.test.ts (56 tests)
  * config-utils.test.ts (83 tests)
- Comprehensive coverage of all 4 analysis engines
- Test execution time: 368ms for 283 tests
- Ready for production deployment

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-20 23:22:26 +00:00

16 lines
337 B
TypeScript

/**
* Jest Setup File
* Configuration and global test utilities
*/
import { logger } from '../src/lib/quality-validator/utils/logger.js';
// Suppress verbose logging during tests
logger.configure({ verbose: false, useColors: false });
// Set test timeout
jest.setTimeout(10000);
// Mock environment
process.env.NODE_ENV = 'test';