UNPKG

@thalorlabs/database

Version:

Database utilities and connection helpers for TypeScript applications with MongoDB support

35 lines (34 loc) 734 B
module.exports = { preset: 'ts-jest', testEnvironment: 'node', roots: ['<rootDir>/src'], testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'], transform: { '^.+\\.ts$': 'ts-jest', }, collectCoverageFrom: [ 'src/**/*.ts', '!src/**/*.d.ts', '!src/tests/**/*.ts', '!src/index.ts', ], collectCoverage: true, coverageDirectory: 'coverage', coverageThreshold: { global: { branches: 100, functions: 100, lines: 100, statements: 100, }, }, coverageReporters: ['text', 'lcov', 'html'], coverageThreshold: { global: { branches: 90, functions: 100, lines: 100, statements: 100, }, }, };