forked from oskariorg/oskari-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
23 lines (22 loc) · 725 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
module.exports = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: [
'<rootDir>/tests/jest/setupTests.js'
],
moduleNameMapper: {
'^oskari-ui(.*)$': '<rootDir>/src/react/$1',
'^antd(.*?)style/index.js$': '<rootDir>/tests/jest/styleMock.js',
'\\.(css|less)$': '<rootDir>/tests/jest/styleMock.js',
'^d3$': '<rootDir>/node_modules/d3/dist/d3.min.js'
},
timers: 'fake',
verbose: true,
transformIgnorePatterns: [
'node_modules/(?!(ol|jsts|geotiff|quick-lru)).+\\.js$'
]
/*
,transform: {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '<rootDir>/tests/jest/fileTransformer.js'
}
*/
};