-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
34 lines (34 loc) · 906 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
28
29
30
31
32
33
34
module.exports = {
preset: 'ts-jest',
setupFiles: [
"<rootDir>/config/setupTests.js"
],
roots: [
"<rootDir>/src"
],
testEnvironment: 'jsdom',
testMatch: [
"**/__tests__/**/*.+(ts|tsx|js)",
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
transform: {
"^.+\\.svg$": "<rootDir>/config/svgTransform.js",
'^.+\\.(ts|tsx)?$': 'ts-jest',
"^.+\\.(js|jsx)$": "babel-jest"
},
transformIgnorePatterns: [
"/node_modules/(!shared-ui-components)"
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
moduleNameMapper: {
"\\.(css|scss)$": "identity-obj-proxy",
"\\.svg": "<rootDir>/config/svgTransform.js"
},
collectCoverageFrom: [
"src/**/**/**/*.component.tsx"
],
collectCoverage: true,
coverageReporters: ["cobertura", "text-summary", "lcov", "html"],
coverageDirectory: '<rootDir>/coverage/',
reporters: ["jest-junit", "default"]
}