-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (25 loc) · 823 Bytes
/
jest.config.js
File metadata and controls
26 lines (25 loc) · 823 Bytes
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
process.env.TZ = 'UTC'
module.exports = {
testURL: 'http://localhost/',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'styl'],
setupFiles: ['<rootDir>/test/jestLib/setup.js'],
setupFilesAfterEnv: ['<rootDir>/test/jestLib/setupAfterEnv.js'],
moduleDirectories: ['src', 'node_modules'],
moduleNameMapper: {
'\\.(png|gif|jpe?g|svg)$': '<rootDir>/test/__mocks__/fileMock.js',
// identity-obj-proxy module is installed by cozy-scripts
'.styl$': 'identity-obj-proxy',
'^cozy-client$': 'cozy-client/dist/index',
'^src/(.*)': '<rootDir>/src/$1',
'^test/(.*)': '<rootDir>/test/$1'
},
transformIgnorePatterns: ['node_modules/(?!cozy-ui)'],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest'
},
globals: {
__ALLOW_HTTP__: false,
__TARGET__: 'browser',
cozy: {}
}
}