forked from mmomtchev/rlayers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
27 lines (27 loc) · 913 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
module.exports = {
testEnvironment: 'jsdom',
roots: ['<rootDir>/test'],
transform: {
'^.+.(t|j)sx?$': [
'ts-jest',
{
tsconfig: {
outDir: './.ts-jest'
}
}
]
},
transformIgnorePatterns: ['/node_modules/(?!(ol|txml|geotiff|quick-lru|color-))'],
moduleNameMapper: {
'^rlayers$': '<rootDir>/src',
'^rlayers/(.*)$': '<rootDir>/src/$1',
'\\.(css|less)$': '<rootDir>/test/css.js',
'^txml/txml$': '<rootDir>/node_modules/txml/dist/txml'
},
setupFiles: ['jest-canvas-mock'],
setupFilesAfterEnv: ['@testing-library/jest-dom', './test/setup_mocks.ts'],
testRegex: '/test/.*\\.test\\.tsx?$',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
collectCoverage: true,
coverageReporters: ['json', 'lcov', 'text', 'clover']
};