-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjest.config.all.js
More file actions
42 lines (41 loc) · 809 Bytes
/
jest.config.all.js
File metadata and controls
42 lines (41 loc) · 809 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
/**
* 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: [
"/graphinius.d.ts",
"/coverage",
"/docs",
"/data"
],
collectCoverage: true,
collectCoverageFrom: [
"lib/**/*.ts",
"!**/node_modules/**",
],
testMatch: [
'**/test/**/*.ts'
],
testPathIgnorePatterns: [
'test_paths.ts',
'common.ts'
],
moduleDirectories: [
"node_modules", "lib"
],
moduleFileExtensions: [
"js",
"ts"
],
moduleNameMapper: {
"@/(.*)": "<rootDir>/lib/$1",
"_/(.*)": "<rootDir>/test/$1",
"#/(.*)": "<rootDir>/$1",
}
};