-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
21 lines (20 loc) · 855 Bytes
/
jest.config.js
File metadata and controls
21 lines (20 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const basePreset = require('jest-expo/jest-preset');
module.exports = {
...basePreset,
// Put our setup FIRST so globals are defined before jest-expo's setup loads expo/src/winter
setupFiles: [
'./jest.setup.js',
...(basePreset.setupFiles || []),
],
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@supabase/.*|react-native-reanimated|react-native-gesture-handler|react-native-screens|react-native-safe-area-context|react-native-view-shot|react-native-pager-view|react-native-url-polyfill)',
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
collectCoverageFrom: [
'lib/**/*.ts',
'hooks/**/*.ts',
'constants/**/*.ts',
'!**/__tests__/**',
'!**/node_modules/**',
],
};