Something went wrong. Try again.
Synapse is a study workspace. Organize courses read and annotate the material, train with generated exercises and watch your progress forked from denishovart.com/synapse
Something went wrong. Try again.
1234567891011121314151617181920212223242526/** @type {import('jest').Config} */module.exports = { moduleFileExtensions: ['js', 'json', 'ts'], rootDir: '.', testRegex: '.*\\.(spec|integration-spec)\\.ts$', transform: { '^.+\\.ts$': ['ts-jest', { tsconfig: 'tsconfig.json' }] }, // Coverage tracks the unit-testable core (use-cases + persistence). External // adapters (OCR, Claude, pdf/pptx) are I/O boundaries verified via mocked // integration tests, and controllers via supertest integration tests - both // excluded here. collectCoverageFrom: [ 'src/application/**/*.ts', 'src/infrastructure/persistence/**/*.ts', '!src/**/*.spec.ts', '!src/**/*.module.ts', // The pg-dialect schema is a structural mirror of the sqlite one; its table // factories only run under DB_DIALECT=postgres, which the suite never uses // (tests are sqlite-only). Excluded like the other inactive-path code above. '!src/infrastructure/persistence/drizzle/schema.pg.ts', ], coverageThreshold: { global: { lines: 85, functions: 90, branches: 70, statements: 85 }, }, testEnvironment: 'node',};