-
Notifications
You must be signed in to change notification settings - Fork 13
/
jest.config.js
28 lines (27 loc) · 1014 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
module.exports = {
testEnvironment: 'jest-environment-jsdom',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
testMatch: ['<rootDir>/**/*.test.ts', '<rootDir>/**/*.test.tsx'],
transformIgnorePatterns: [
'<rootDir>/node_modules/(?!(@patternfly|@openshift-console\\S*?|react-tokens|@novnc|@popperjs|lodash|monaco-editor|react-monaco-editor|byte-size|lodash-es)/.*)',
],
moduleNameMapper: {
'^.+\\.(css|sass|scss)$': '<rootDir>/styleMock.js',
'^@app(.*)$': '<rootDir>/src/$1',
'@console/*': '<rootDir>/__mocks__/dynamic-plugin-sdk.ts',
'@openshift-console/*': '<rootDir>/__mocks__/dynamic-plugin-sdk.ts',
'react-i18next': '<rootDir>/__mocks__/react-i18next.ts',
},
modulePaths: ['<rootDir>'],
roots: ['<rootDir>/src'],
setupFilesAfterEnv: ['<rootDir>/setupTests.ts'],
coveragePathIgnorePatterns: [
'node_modules',
'__mocks__',
'setupJest.ts',
'<rootDir>/src/test-utils.tsx',
'storiesHelpers.ts',
'.*.stories.tsx',
],
testTimeout: 30000,
};