module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['/tests'], testMatch: ['**/*.test.ts'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], collectCoverageFrom: [ 'src/**/*.ts', '!src/**/*.d.ts', ], moduleNameMapper: { '^obsidian$': '/tests/__mocks__/obsidian.ts' }, coverageThreshold: { global: { lines: 97, // All testable lines must be covered (with istanbul ignore for intentional exclusions) statements: 97, // Allow minor statement coverage gaps branches: 92, // Branch coverage baseline functions: 96 // Function coverage baseline } } };