-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
33 lines (32 loc) · 951 Bytes
/
jest.config.js
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
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
module.exports = {
preset: '@testing-library/react-native',
verbose: true,
globals: {
'ts-jest': {
tsConfigFile: 'tsconfig.jest.json',
},
},
clearMocks: true,
setupFilesAfterEnv: [
'<rootDir>/test/setup.js',
'<rootDir>/node_modules/jest-enzyme/lib/index.js',
],
collectCoverageFrom: [
'app/**/*.{js,jsx,ts,tsx}',
],
coverageReporters: [
'lcov',
'text-summary',
],
testPathIgnorePatterns: [
'/node_modules/',
],
moduleNameMapper: {
'assets/images/video_player/(.*).png': '<rootDir>/dist/assets/images/video_player/[email protected]',
},
transformIgnorePatterns: [
'node_modules/(?!react-native|jail-monkey|@sentry/react-native|react-navigation|@react-native-community/cameraroll)',
],
};