/** * Jest Configuration for Agentic-Jujutsu Tests */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: [''], testMatch: [ '**/*.test.ts', '**/*-tests.ts' ], transform: { '^.+\\.ts$': 'ts-jest' }, collectCoverageFrom: [ '**/*.ts', '!**/*.test.ts', '!**/*-tests.ts', '!**/node_modules/**', '!**/dist/**' ], coverageThreshold: { global: { branches: 75, functions: 80, lines: 80, statements: 80 } }, moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], verbose: true, testTimeout: 30000, maxWorkers: '50%', globals: { 'ts-jest': { tsconfig: { esModuleInterop: true, allowSyntheticDefaultImports: true, moduleResolution: 'node', resolveJsonModule: true, target: 'ES2020', module: 'commonjs', lib: ['ES2020'] } } } };