forked from alfa-laboratory/arui-feather
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
48 lines (48 loc) · 1.11 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
43
44
45
46
47
48
module.exports = {
testRegex: '.*\\.test\\.(jsx|js|ts|tsx)$',
moduleNameMapper: {
'\\.css$': '<rootDir>/__mocks__/assets-mock.js',
'\\.png$': '<rootDir>/__mocks__/assets-mock.js',
'\\.svg': '<rootDir>/__mocks__/assets-mock.js',
'\\.xml': '<rootDir>/__mocks__/assets-mock.js',
'\\.ico': '<rootDir>/__mocks__/assets-mock.js'
},
transform: {
'^.+\\.jsx?$': 'babel-jest',
'^.+\\.tsx?$': 'ts-jest'
},
modulePathIgnorePatterns: [
'<rootDir>/.publish/'
],
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
'json'
],
setupFiles: [
'<rootDir>/__tests__/setup.js'
],
collectCoverageFrom: [
'src/**/*.{js,ts,jsx,tsx}'
],
coverageReporters: [
'lcov',
'text',
'clover'
],
coveragePathIgnorePatterns: [
'/node_modules/',
'\\.test\\.jsx$',
'-test\\.jsx$',
'index.js'
],
snapshotSerializers: [
'enzyme-to-json/serializer'
],
globals: {
window: true,
jest: true
}
};