-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) · 902 Bytes
/
jest.config.js
File metadata and controls
30 lines (30 loc) · 902 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',
modulePathIgnorePatterns: [
'<rootDir>/lib/',
'<rootDir>/nitrogen/',
'<rootDir>/example/',
],
testPathIgnorePatterns: ['<rootDir>/example/', '<rootDir>/node_modules/'],
testMatch: [
'<rootDir>/src/**/__tests__/**/*.test.{js,jsx,ts,tsx}',
'<rootDir>/src/**/?(*.)+(spec|test).{js,jsx,ts,tsx}',
'<rootDir>/plugin/**/__tests__/**/*-test.{js,jsx,ts,tsx}',
'<rootDir>/plugin/**/?(*.)+(spec|test).{js,jsx,ts,tsx}',
],
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|@react-navigation)/)',
],
setupFilesAfterEnv: [],
testEnvironment: 'node',
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'plugin/src/**/*.{js,jsx,ts,tsx}',
'!src/**/*.d.ts',
'!src/**/*.nitro.ts',
'!src/specs/**',
'!plugin/src/index.ts',
'!**/__tests__/**',
'!**/__mocks__/**',
],
};