forked from GetStream/stream-chat-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjest.config.js
More file actions
26 lines (26 loc) · 810 Bytes
/
jest.config.js
File metadata and controls
26 lines (26 loc) · 810 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
// eslint-disable-next-line no-undef
module.exports = {
moduleNameMapper: {
'mock-builders(.*)$': '<rootDir>/src/mock-builders$1',
},
preset: 'react-native',
setupFiles: [
require.resolve('./jest-setup.js'),
'./src/mock-builders/native/react-native-mock.js',
'./node_modules/react-native-gesture-handler/jestSetup.js',
],
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],
testPathIgnorePatterns: ['/node_modules/', '/examples/', '__snapshots__'],
testRegex: [
/**
* If you want to test single file, mention it here
* e.g.,
* "src/components/ChannelList/__tests__/ChannelList.test.js",
* "src/components/MessageList/__tests__/MessageList.test.js"
*/
],
transform: {
'^.+\\.[t|j]sx?$': 'babel-jest',
},
verbose: true,
};