-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
42 lines (41 loc) · 1.09 KB
/
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
38
39
40
41
42
const esModules = ['@aerisweather'];
module.exports = {
globals: {
'ts-jest': {
babelConfig: {
presets: [
'@babel/preset-env'
]
},
tsConfig: '<rootDir>/tsconfig.test.json',
diagnostics: {
ignoreCodes: [2451, 2686, 2322]
}
// isolatedModules: false
}
},
roots: [
'<rootDir>/src/',
'<rootDir>/tests/'
],
setupFiles: [
'<rootDir>/tests/setupTests.ts'
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testRegex: '(/tests/.*|(\\.|/)(test|spec))\\.(tsx?|jsx?)$',
testPathIgnorePatterns: [
'<rootDir>/node_modules/',
'<rootDir>/tests/setupTests.ts',
'<rootDir>/tests/fixtures/',
'<rootDir>/tests/types/',
'<rootDir>/tests/__mocks__/',
'<rootDir>/__mocks__/'
],
transform: {
'^.+\\.tsx?$': 'ts-jest',
'^.+\\.jsx?$': 'babel-jest'
},
transformIgnorePatterns: [
`/node_modules/(?!(${esModules.join('|')}))`
]
};