-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jest.config.js
24 lines (22 loc) · 1003 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
// Copyright (c) 2023 Joseph Hale <[email protected]>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
module.exports = {
preset: 'react-native',
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
transformIgnorePatterns: [
'node_modules/(?!(jest-)?@react-native|react-native|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|unimodules|sentry-expo|native-base)',
],
setupFilesAfterEnv: [
'<rootDir>/src/__mocks__/globalMock.js',
],
// From: https://stackoverflow.com/a/73203803/14765128
moduleNameMapper: {
// Force module uuid to resolve with the CJS entry point, because
// Jest does not support package.json.exports. See
// https://github.com/uuidjs/uuid/issues/451
uuid: require.resolve('uuid'),
},
};