-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (29 loc) · 904 Bytes
/
jest.config.js
File metadata and controls
30 lines (29 loc) · 904 Bytes
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
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transformIgnorePatterns: [
'node_modules/(?!(jest-)?react-native|react-clone-referenced-element|@react-native-community|rollbar-react-native|@fortawesome|@react-native|@react-navigation)',
],
reporters: [
'default',
[
'./node_modules/jest-html-reporter',
{
pageTitle: 'Test Report',
statusIgnoreFilter: 'passed',
includeFailureMsg: true,
includeConsoleLog: false,
outputPath: './coverage/test-report.html',
},
],
],
automock: false,
coveragePathIgnorePatterns: ['/node_modules/'],
coverageReporters: ['text', 'html', 'lcov', 'json'],
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!<rootDir>/node_modules/',
'!<rootDir>/coverage/',
],
testMatch: ['<rootDir>/__tests__/*.js'],
};