mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-04-21 13:43:33 +00:00
29 lines
633 B
TypeScript
29 lines
633 B
TypeScript
![]() |
import type { Config } from 'jest';
|
||
|
|
||
|
const config: Config = {
|
||
|
verbose: true,
|
||
|
// setupFiles: ['dotenv/config'],
|
||
|
roots: ['<rootDir>'],
|
||
|
preset: 'ts-jest',
|
||
|
transform: {
|
||
|
'^.+\\.(ts|tsx)?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
|
||
|
},
|
||
|
|
||
|
// Test File Settings
|
||
|
modulePathIgnorePatterns: ['lib', 'dist'],
|
||
|
testMatch: ['**/*.(unit|spec|test).(j|t)s'],
|
||
|
|
||
|
// Code Coverage Settings
|
||
|
collectCoverage: true,
|
||
|
collectCoverageFrom: [
|
||
|
'src/**/*.ts',
|
||
|
|
||
|
// Ignore Coverage For these Files
|
||
|
'!src/test/**/*.ts',
|
||
|
],
|
||
|
coverageReporters: ['html', 'json', 'text'],
|
||
|
reporters: ['default'],
|
||
|
};
|
||
|
|
||
|
export default config;
|