mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51211 Changelog: [internal] This modifies the setup for Fantom so: 1. We don't inject "InitializeCore" by default. 2. We define a default environment setup module for Fantom with good defaults (LogBox, etc. disabled). We also migrate all existing tests to use the new module. The goal of this is to prevent LogBox from being used in tests so we can properly fix error propagation in the work loop (so they're not intercepted by it). Reviewed By: rshest Differential Revision: D69003812 fbshipit-source-id: 00353b5055e3700943a08ea67f698d49e068555b
19 lines
486 B
JavaScript
19 lines
486 B
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.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
/**
|
|
* This is just an entrypoint to warm up the Metro cache before the tests run.
|
|
*/
|
|
|
|
import '@react-native/fantom/src/setUpDefaultReactNativeEnvironment';
|
|
import '@react-native/fantom/src/__tests__/Fantom-itest';
|
|
import './setup';
|