forked from Availity/availity-react
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjest.config.js
32 lines (32 loc) · 840 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
30
31
32
module.exports = {
setupFilesAfterEnv: ['<rootDir>/jest/setupTests.js'],
collectCoverageFrom: ['packages/**/*.{js,jsx}'],
testPathIgnorePatterns: [
'/node_modules/',
'/docs',
'/storybook',
'/packages/mock/',
],
coveragePathIgnorePatterns: [
'/node_modules/',
'/coverage/',
'/dist/',
'/packages/mock/',
'/storybook/',
'/docs/',
'/packages/feature/bin.js',
],
transformIgnorePatterns: [
'[/\\\\]node_modules[/\\\\](?!@availity).+\\.(js|jsx)$',
],
transform: {
'^.+\\.(js|jsx)$': `${require.resolve('./jest/babel.js')}`,
'^.+\\.css$': `${require.resolve('./jest/css.js')}`,
'^(?!.*\\.(js|jsx|css|json)$)': `${require.resolve('./jest/file.js')}`,
},
roots: ['packages/'],
testEnvironment: 'jest-environment-jsdom-global',
globals: {
jsdom: true,
},
};