mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
7a2463e1f3
Summary: **Depends on https://github.com/facebook/react-native/pull/25100** This commit depends on having migrated all of RN away from Haste. With 100% standard path-based requires, the key foundation is set and we no longer need `hasteImpl` and related settings in the Jest configuration. This commit deletes the `hasteImpl` file and setting as well as `providesModuleNodeModules` and `modulePathNameMapper`, removing most of the dependency graph overriding performed by Jest. ## Changelog [General] [Changed] - Delete hasteImpl, providesModuleNodeModules, and modulePathNameMapper from Jest config Pull Request resolved: https://github.com/facebook/react-native/pull/24811 Differential Revision: D15659274 Pulled By: cpojer fbshipit-source-id: 8a4a3b97ddf7e38fbe62c6d3cc9c98248bfca343
29 lines
690 B
JavaScript
29 lines
690 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = {
|
|
haste: {
|
|
defaultPlatform: 'ios',
|
|
platforms: ['android', 'ios', 'native'],
|
|
},
|
|
transform: {
|
|
'^.+\\.(js|ts|tsx)$': 'babel-jest',
|
|
'^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$': require.resolve(
|
|
'./jest/assetFileTransformer.js',
|
|
),
|
|
},
|
|
transformIgnorePatterns: [
|
|
'node_modules/(?!(jest-)?react-native|@react-native-community)',
|
|
],
|
|
setupFiles: [require.resolve('./jest/setup.js')],
|
|
testEnvironment: 'node',
|
|
};
|