-
Notifications
You must be signed in to change notification settings - Fork 1
/
jest.config.json
38 lines (38 loc) · 1.67 KB
/
jest.config.json
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
{
"verbose": false,
"silent": true,
"moduleFileExtensions": ["js", "json", "ts"],
"workerThreads": true,
"rootDir": ".",
"setupFiles": ["dotenv/config", "<rootDir>/jest.init.ts"],
"testRegex": ".*\\.spec\\.ts$",
"testPathIgnorePatterns": [".*\\.mock\\.spec\\.ts$"],
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": ["**/*.(t|j)s"],
"coveragePathIgnorePatterns": ["/test/"],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": ["<rootDir>/apps/", "<rootDir>/libs/"],
"moduleNameMapper": {
"^#testlib(|/.*)$": "<rootDir>/testlib/$1",
"^#account-api(|/.*)$": "<rootDir>/apps/account-api/src/$1",
"^#account-lib(|/.*)$": "<rootDir>/libs/account-lib/src/$1",
"^#content-publishing-api(|/.*)$": "<rootDir>/apps/content-publishing-api/src/$1",
"^#content-publishing-lib(|/.*)$": "<rootDir>/libs/content-publishing-lib/src/$1",
"^#content-watcher(|/.*)$": "<rootDir>/apps/content-watcher/src/$1",
"^#content-watcher-lib(|/.*)$": "<rootDir>/libs/content-watcher-lib/src/$1",
"^#graph-api(|/.*)$": "<rootDir>/apps/graph-api/src/$1",
"^#graph-worker(|/.*)$": "<rootDir>/apps/graph-worker/src/$1",
"^#graph-lib(|/.*)$": "<rootDir>/libs/graph-lib/src/$1",
"^#types(|/.*)$": "<rootDir>/libs/types/src/$1",
"^#config(|/.*)$": "<rootDir>/libs/config/src/$1",
"^#queue(|/.*)$": "<rootDir>/libs/queue/src/$1",
"^#utils(|/.*)$": "<rootDir>/libs/utils/src/$1",
"^#cache(|/.*)$": "<rootDir>/libs/cache/src/$1",
"^#blockchain(|/.*)$": "<rootDir>/libs/blockchain/src/$1",
"^#consumer(|/.*)$": "<rootDir>/libs/consumer/src/$1",
"^#storage(|/.*)$": "<rootDir>/libs/storage/src/$1"
}
}