-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (18 loc) · 593 Bytes
/
Copy pathjest.config.js
File metadata and controls
19 lines (18 loc) · 593 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// eslint-disable-next-line @typescript-eslint/no-var-requires
const os = require('os');
module.exports = {
preset: 'ts-jest',
automock: false,
browser: true,
clearMocks: true,
resetMocks: true,
resetModules: true,
collectCoverage: true,
displayName: 'ReactHotKey',
maxConcurrency: os.cpus().length,
testURL: 'http://localhost',
moduleDirectories: ['node_modules', 'src'],
setupFilesAfterEnv: ['<rootDir>/.jest/setup_before_test_case.js'],
testPathIgnorePatterns: ['node_modules', '.cache', 'coverage'],
testRegex: '(/tests/.*|(\\.|/)(tests|spec))\\.[jt]sx?$',
};