mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
4bced9099a
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/48015 Changelog: [internal] Right now, when we run individual Fantom tests, we compile Hermes and the RN Tester CLI as part of the test, which causes the first test to run to be very slow and the remaining tests in the same run to be very fast. This is misleading because it makes it look like the test itself is slow, when it's actually paying a price for everyone. Fortunately, Jest has an option to do a global setup before any tests in the project run (and it doesn't run if none of the tests in the project run, in multi-project setups), so we can use it to do the necessary warmup so it doesn't end up being attributed to individual tests. Reviewed By: javache Differential Revision: D66595406 fbshipit-source-id: 496aa2b248da661f7504c8445fed1edad0301803
14 lines
344 B
JavaScript
14 lines
344 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.
|
|
*
|
|
* @format
|
|
* @oncall react_native
|
|
*/
|
|
|
|
require('../../../../scripts/build/babel-register').registerForMonorepo();
|
|
|
|
module.exports = require('./warmup');
|