-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjest.config.js
30 lines (30 loc) · 934 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
module.exports = {
collectCoverageFrom: [
'<rootDir>/**/*.{ts,tsx,js,jsx}',
'!<rootDir>/**/*.story.{ts,tsx,js,jsx}',
],
coverageReporters: ['json-summary', 'lcov', 'text'],
coverageDirectory: '<rootDir>/../coverage',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
preset: 'react-native',
setupFiles: [
'<rootDir>/src/__tests__/jest.setup.js',
],
testPathIgnorePatterns: [
'<rootDir>/src/__tests__/jest.setup.js',
],
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(tsx?|ts?)$',
transform: {
'^.+\\.jsx$': 'babel-jest',
'^.+\\.tsx?$': [
'ts-jest',
{
tsconfig: 'tsconfig.spec.json',
},
],
},
transformIgnorePatterns: [
// eslint-disable-next-line
'node_modules/(?!react-native|@react-native|react-native-onboarding-swiper|react-navigation|@react-native-community/segmented-control|@react-native-community/viewpager/)'
],
};