forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.base.js
24 lines (23 loc) · 931 Bytes
/
jest.config.base.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
/** This config file is for packages in monorepo
Universal configurations should go here
*/
module.exports = {
collectCoverage: false,
collectCoverageFrom: [
'**/*.{js,jsx,ts,tsx}',
'!**/node_modules/**',
'!**/dist/**',
'!/integration-tests/',
'!/component-tests/',
],
coverageReporters: ['lcov'],
coverageDirectory: './coverage/',
testRegex: '(/__tests__/.*|(\\.)(test|spec))\\.(js|jsx|tsx|ts)?$',
// This is needed to transform es modules imported from node_modules of the target component.
transformIgnorePatterns: [
'/node_modules/(?!(@enykeev/react-virtualized|@simplewebauthn/browser|@deriv-com/ui|@deriv-com/quill-ui|@sendbird/chat)).+\\.js$',
],
setupFiles: ['<rootDir>/../../jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/../../setupTests.js'],
testPathIgnorePatterns: ['/integration-tests/', '/component-tests/'],
};