forked from deriv-com/deriv-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.base.js
More file actions
18 lines (17 loc) · 817 Bytes
/
jest.config.base.js
File metadata and controls
18 lines (17 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** 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/**'],
coverageReporters: ['lcov'],
coverageDirectory: './coverage/',
testEnvironment: 'jsdom',
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|@deriv-com/auth-client)).+\\.js$',
],
setupFiles: ['<rootDir>/../../jest.setup.js'],
setupFilesAfterEnv: ['<rootDir>/../../setupTests.js'],
};