forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
29 lines (29 loc) · 839 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
module.exports = {
collectCoverage: true,
coverageReporters: ['lcov'],
clearMocks: true,
testMatch: ['**/__tests__/**/*.{js,ts}?(x)', '**/*.test.{js,ts}?(x)'],
modulePathIgnorePatterns: [
'<rootDir>/packages/*.*/dist/*.*',
'<rootDir>/packages/*.*/public/*.*',
'<rootDir>/packages/*.*/.cache/*.*'
],
roots: ['<rootDir>/packages'],
setupFiles: ['<rootDir>/jest.env.js'],
snapshotSerializers: [
'enzyme-to-json/serializer',
],
transform: {
'^.+\\.[jt]sx?$': 'babel-jest'
},
transformIgnorePatterns: ['node_modules/(?!@patternfly|novnc-core|@popperjs|lodash)'],
testPathIgnorePatterns: [
'<rootDir>/packages/react-integration/'
],
coveragePathIgnorePatterns: [
'/dist/'
],
moduleNameMapper: {
"\\.(css|less)$": "<rootDir>/packages/react-styles/__mocks__/styleMock.js"
}
};