mirror of
https://github.com/johndoe6345789/snippet-pastebin.git
synced 2026-04-24 13:34:55 +00:00
- 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>
16 lines
337 B
TypeScript
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';
|