-
-
Notifications
You must be signed in to change notification settings - Fork 332
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 964 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 964 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
module.exports = {
detectOpenHandles: true,
forceExit: true,
projects: [
{
displayName: 'react-native-mmkv',
testMatch: ['<rootDir>/packages/react-native-mmkv/src/**/__tests__/**/*.(ts|tsx|js)', '<rootDir>/packages/react-native-mmkv/src/**/*.(test|spec).(ts|tsx|js)'],
preset: 'react-native',
transform: {
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
},
transformIgnorePatterns: [
'node_modules/(?!(react-native|@react-native|react-native-.*)/)'
],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'],
testPathIgnorePatterns: ['<rootDir>/packages/react-native-mmkv/lib/'],
moduleNameMapper: {
'^react-native-nitro-modules$': '<rootDir>/packages/react-native-mmkv/__mocks__/react-native-nitro-modules.js'
},
collectCoverageFrom: [
'packages/react-native-mmkv/src/**/*.{ts,tsx}',
'!packages/react-native-mmkv/src/**/*.d.ts'
]
},
]
}