-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjest.config.js
More file actions
44 lines (43 loc) · 832 Bytes
/
jest.config.js
File metadata and controls
44 lines (43 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* In case jest --watch hits the OS's file watch limit, run:
* '''bash
* echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
* '''
*/
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
verbose: true,
watchPathIgnorePatterns: [
"/build",
"/coverage",
"/data",
"/docs",
"/lib"
],
collectCoverage: false,
collectCoverageFrom: [
"lib/**/*.ts",
"!**/node_modules/**",
],
testMatch: [
'**/test/**/*.ts'
],
testPathIgnorePatterns: [
'_performance',
'test_paths.ts',
'common.ts'
],
moduleDirectories: [
"node_modules", "lib"
],
moduleFileExtensions: [
"js",
"ts"
],
moduleNameMapper: {
"@/(.*)": "<rootDir>/lib/$1",
"_/(.*)": "<rootDir>/test/$1",
"#/(.*)": "<rootDir>/$1",
}
};