-
Notifications
You must be signed in to change notification settings - Fork 38
/
jest.config.js
32 lines (32 loc) · 749 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 = {
"verbose": true,
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.js$": "./node_modules/babel-jest"
},
"moduleNameMapper": {
'app/core/utils/kbn': '<rootDir>/node_modules/grafana-sdk-mocks/app/core/utils/kbn.js',
'app/core/time_series2': '<rootDir>/node_modules/grafana-sdk-mocks/app/headers/common.d.ts',
},
"transformIgnorePatterns": [
'<rootDir>/node_modules/(?!grafana-sdk-mocks)',
],
"testRegex": "(\\.|/)(spec|jest)\\.(jsx?|tsx?)$",
"roots": [
"tests",
"src"
],
"moduleDirectories": [
"node_modules",
"bower_components",
"src",
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
]
};