forked from grafana/grafana-zabbix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
32 lines (32 loc) · 697 Bytes
/
jest.config.js
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
module.exports = {
"roots": [
// "<rootDir>/dist/test"
"<rootDir>/src"
],
"setupFiles": [
// "<rootDir>/dist/test/test-setup/jest-setup.js"
"<rootDir>/src/test-setup/jest-setup.js"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
],
"moduleNameMapper": {
"^[./a-zA-Z0-9$_-]+\.css\!?$": "<rootDir>/src/test-setup/cssStub.js",
},
"testRegex": "(\\.|/)(test|spec)\\.(jsx?|tsx?)$",
"transform": {
"^.+\\.js$": "babel-jest",
"^.+\\.(ts|tsx)$": "ts-jest"
},
"coverageDirectory": "<rootDir>/tmp/coverage/",
"collectCoverage": false,
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.test.json"
}
}
};