forked from bamlab/react-native-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
24 lines (24 loc) · 745 Bytes
/
jest.config.js
File metadata and controls
24 lines (24 loc) · 745 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
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js'],
globals: {
'ts-jest': {
tsConfig: 'tsconfig.json',
diagnostics: {
warnOnly: true,
},
},
},
transform: {
'^.+\\.(js)$': 'babel-jest',
'\\.(ts|tsx)$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
testPathIgnorePatterns: ['\\.snap$', '<rootDir>/node_modules/', '<rootDir>/.history/'],
cacheDirectory: '.jest/cache',
transformIgnorePatterns: ['node_modules/@bam.tech/react-native-text-input'],
setupFilesAfterEnv: ['./jest.setup.ts'],
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
testEnvironment: 'jsdom',
resetMocks: true,
};