-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjest.config.js
More file actions
30 lines (30 loc) · 1019 Bytes
/
Copy pathjest.config.js
File metadata and controls
30 lines (30 loc) · 1019 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: 'jest-expo',
// `immer` ships ESM only and the zustand stores build on it, so it has to be
// transformed for any store to be importable from a test.
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native|@react-native(-community)?)|expo(nent)?|@expo(nent)?/.*|@expo-google-fonts/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base|react-native-svg|@shopify/flash-list|immer)',
],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
},
setupFiles: ['<rootDir>/jest.setup.js'],
setupFilesAfterEnv: [],
testMatch: ['**/__tests__/**/*.test.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
testPathIgnorePatterns: ['/node_modules/', '/playwright/'],
collectCoverageFrom: [
'hooks/**/*.{ts,tsx}',
'components/**/*.{ts,tsx}',
'lib/**/*.{ts,tsx}',
'!**/*.d.ts',
'!**/node_modules/**',
'!**/dist/**',
],
globals: {
'ts-jest': {
tsconfig: {
jsx: 'react',
},
},
},
};