forked from RedHatInsights/patchman-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
19 lines (19 loc) · 724 Bytes
/
jest.config.js
File metadata and controls
19 lines (19 loc) · 724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports = {
coverageDirectory: 'coverage-jest',
testEnvironment: 'jsdom',
preset: 'ts-jest',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'ts-jest',
},
collectCoverage: true,
collectCoverageFrom: ['src/**/*.{js,ts,tsx}', '!src/**/stories/*'],
setupFiles: ['<rootDir>/config/setupTests.js'],
roots: ['<rootDir>/src/'],
moduleNameMapper: {
'\\.(css|scss)$': 'identity-obj-proxy',
},
testPathIgnorePatterns: ['src/SmartComponents/SystemDetail/InventoryDetail.test.js'],
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(@patternfly/react-core/|@patternfly/react-icons/|@redhat-cloud-services|@openshift|lodash-es|@patternfly/react-table|@patternfly/react-tokens|p-all)).*$',
],
};