forked from patw0929/react-intl-tel-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
21 lines (21 loc) · 764 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
module.exports = {
collectCoverageFrom: [
'src/**/*.js',
'!**/__mocks__/**',
'!**/__tests__/**',
'!.storybook',
],
setupFiles: ['<rootDir>/config/jest/setup.js'],
setupTestFrameworkScriptFile: '<rootDir>/config/jest/setupTestFramework.js',
testEnvironment: 'jsdom',
testPathIgnorePatterns: ['<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]'],
testRegex: '/__tests__/.*\\.(test|spec)\\.js$',
testURL: 'http://localhost',
transform: {
'^(?!.*\\.(js|jsx|css|scss|json)$)':
'<rootDir>/config/jest/fileTransform.js',
'^.+\\.(js|jsx)$': '<rootDir>/config/jest/transform.js',
'^.+\\.(scss|css)$': '<rootDir>/config/jest/cssTransform.js',
},
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$'],
}