-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
38 lines (31 loc) · 1.35 KB
/
jest.config.js
File metadata and controls
38 lines (31 loc) · 1.35 KB
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
31
32
33
34
35
36
37
38
module.exports = {
// FIXMETUNA: I either get import errors or firebase errors depending on the preset, investigate
preset: 'react-native',
// preset: "jest-expo",
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
// moduleFileExtensions: ["js", "jsx", "ts", "tsx", "json", "node"],
// moduleFileExtensions: ["js", "json", "jsx", "ts", "tsx", "node"],
// transformIgnorePatterns: [
// "node_modules/(?!((jest-)?react-native(-.*)?|@react-native(-community)?)/)",
// ],
transformIgnorePatterns: [
'node_modules/(?!((jest-)?react-native(-.*)?|react-navigation|react-navigation-redux-helpers|@react-navigation|@react-native(-community)?)/)',
'/node_modules/(?!native-base)/',
'node_modules/(?!(jest-)?@?react-native|@react-native-community|@react-navigation)',
],
// transformIgnorePatterns: [
// "node_modules/(?!((jest-)?react-native(-.*)?|@react-navigation|@firebase|@react-native(-community)?)/)",
// ],
// transform: {
// "^.+\\.(ts|tsx)?$": "ts-jest",
// "^.+\\.(js|jsx)$": "babel-jest",
// },
// automock: true,
// testEnvironment: "jsdom",
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],
setupFiles: ['./node_modules/react-native-gesture-handler/jestSetup.js'],
moduleNameMapper: {
'\\.svg': '<rootDir>/tests/__mocks__/svgMock.js',
},
testEnvironment: 'node',
};