forked from EdgeApp/edge-react-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
20 lines (16 loc) · 729 Bytes
/
jest.config.js
File metadata and controls
20 lines (16 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/** @type {import('@jest/types').Config.InitialOptions} */
const config = {
preset: 'react-native',
coverageDirectory: './coverage',
setupFiles: ['./jestSetup.js'],
// Ignore tests in the e2e folder:
testPathIgnorePatterns: ['<rootDir>/node_modules', '<rootDir>/e2e'],
// Don't run node_modules through Babel, except specific ones that still need it:
transformIgnorePatterns: ['<rootDir>/node_modules/(?!(@react-native|react-native|react-navigation))']
}
// Produce junit and cobertura output when on Jenkins:
if (process.env.JEST_JENKINS != null) {
config.coverageReporters = ['html', 'cobertura']
config.reporters = ['default', ['jest-junit', { outputDirectory: './coverage' }]]
}
module.exports = config