21 lines
462 B
TypeScript
Executable File
21 lines
462 B
TypeScript
Executable File
import type { Config } from '@jest/types'
|
|
|
|
const config: Config.InitialOptions = {
|
|
preset: 'ts-jest',
|
|
testEnvironment: 'node',
|
|
testMatch: ['**/*.spec.ts', '**/*.spec.tsx'],
|
|
moduleDirectories: ['node_modules', 'src'],
|
|
transform: {
|
|
'<regex_match_files>': [
|
|
'ts-jest',
|
|
{
|
|
tsconfig: 'tsconfig.test.json',
|
|
},
|
|
],
|
|
},
|
|
coveragePathIgnorePatterns: ['tests'],
|
|
testPathIgnorePatterns: ['/tests/'],
|
|
}
|
|
|
|
export default config
|