mirror of
https://github.com/facebook/react-native.git
synced 2024-11-22 06:29:46 +00:00
4e0dfedd51
Summary: The `Renderer` directory is supposed to be only for files synced from the React repo. This moves the `public` directory that was added to it recently to the `ReactNative` directory. Changelog: [internal] bypass-github-export-checks Reviewed By: sammy-SC Differential Revision: D44421951 fbshipit-source-id: d098970b80cd467b5c772c3ae91ce716be373484
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, Inc. and 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 = {
|
|
transform: {
|
|
'^.+\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp)$':
|
|
'<rootDir>/packages/react-native/jest/assetFileTransformer.js',
|
|
'.*': './jest/preprocessor.js',
|
|
},
|
|
setupFiles: ['./packages/react-native/jest/local-setup.js'],
|
|
fakeTimers: {
|
|
enableGlobally: true,
|
|
legacyFakeTimers: true,
|
|
},
|
|
snapshotFormat: {
|
|
escapeString: true,
|
|
printBasicPrototype: true,
|
|
},
|
|
testRegex: '/__tests__/.*-test\\.js$',
|
|
testPathIgnorePatterns: [
|
|
'/node_modules/',
|
|
'<rootDir>/packages/react-native/template',
|
|
'<rootDir>/packages/react-native/Libraries/Renderer',
|
|
'<rootDir>/packages/rn-tester/e2e',
|
|
],
|
|
transformIgnorePatterns: ['node_modules/(?!@react-native/)'],
|
|
haste: {
|
|
defaultPlatform: 'ios',
|
|
platforms: ['ios', 'android'],
|
|
},
|
|
unmockedModulePathPatterns: [
|
|
'node_modules/react/',
|
|
'packages/react-native/Libraries/Renderer',
|
|
'promise',
|
|
'source-map',
|
|
'fastpath',
|
|
'denodeify',
|
|
],
|
|
testEnvironment: 'node',
|
|
collectCoverageFrom: ['packages/react-native/Libraries/**/*.js'],
|
|
coveragePathIgnorePatterns: [
|
|
'/__tests__/',
|
|
'/vendor/',
|
|
'<rootDir>/packages/react-native/Libraries/react-native/',
|
|
],
|
|
};
|