-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.ts
24 lines (22 loc) · 882 Bytes
/
jest.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { Config } from '@jest/types';
import { resolve } from 'path';
const config: Config.InitialOptions = {
verbose: true,
moduleFileExtensions: ['js', 'json', 'ts'],
rootDir: '.',
testMatch: ['**/src/**/*test.[jt]s?(x)', '**/test/**/*test.[jt]s?(x)'],
// testRegex: ["(src|test)/*.(test|spec))\\.[tj]sx?$"],
testPathIgnorePatterns: ['<rootDir>/dist/', '<rootDir>/node_modules/'],
transform: {
'^.+\\.(t|j)s$': 'ts-jest',
},
// collectCoverageFrom: ['./src/**/*.(t|j)s', '!./node_modules/**'],
// coverageDirectory: './coverage/unit',
testEnvironment: 'node',
coverageReporters: ['json'],
coveragePathIgnorePatterns: ['.module.ts$', '.spec.ts$', 'merge-coverage.ts'],
globalSetup: resolve('test/setup.ts'),
globalTeardown: resolve('test/teardown.ts'),
testTimeout: 20000,
};
export default config;