forked from gooddata/gooddata-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
37 lines (36 loc) · 940 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
33
34
35
36
37
// (C) 2019 GoodData Corporation
process.env = Object.assign(process.env, { NODE_ICU_DATA: 'node_modules/full-icu' });
module.exports = {
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
],
"transform": {
".(js|jsx)": "babel-jest",
".(ts|tsx)": "ts-jest"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
"testPathIgnorePatterns": [
",/node_modules/",
"/dist/"
],
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"examples/server/src/**/*.{js,jsx}",
"!**/*.d.ts"
],
"collectCoverage": false,
"moduleNameMapper": {
"^[./a-zA-Z0-9$_-]+\\.svg$": "<rootDir>/jestSvgStub.js",
"\\.(css|less|sass|scss)$": "<rootDir>/__mocks__/styleMock.ts"
},
"coverageReporters": [
"html"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json"
]
};