mirror of
https://github.com/labs42io/clean-code-typescript.git
synced 2025-04-19 23:33:35 +00:00
28 lines
633 B
TypeScript
28 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;
|