-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjest.config.ts
More file actions
22 lines (20 loc) · 639 Bytes
/
Copy pathjest.config.ts
File metadata and controls
22 lines (20 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import type { Config } from '@jest/types';
import * as os from 'os';
const config: Config.InitialOptions = {
testEnvironment: "node",
preset: 'ts-jest',
roots: [ '<rootDir>/test/tests' ],
testRegex: '.*(test|spec)\\.tsx?$',
moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx', 'json', 'node' ],
transform: {
'^.+\\.(ts|tsx)$': ['ts-jest', {
tsconfig: './test/tsconfig.json'
}]
},
modulePaths: [ "<rootDir>/node_modules" ],
// globalSetup: '<rootDir>/test/src/prepare.ts',
// globalTeardown: '<rootDir>/test/src/cleanup.ts',
testTimeout: 10000,
maxConcurrency: os.cpus().length
}
export default config;