mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
a7450572fa
Imports the runtime from `React.unstable_ForgetRuntime` rather than from a separate module. The hope is that any code that gets transformed already has a dependency on React anyway, so we can avoid adding a new dependency that other systems don't know about. While here, i also cleaned up the `guardThrows` flag (we still parse it if present and warn, rather than throwing, to make it easier to adopt the latest version in various places).
14 lines
404 B
JavaScript
14 lines
404 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.
|
|
*/
|
|
|
|
const makeE2EConfig = require("../jest/makeE2EConfig");
|
|
|
|
const config = makeE2EConfig("e2e with forget", true);
|
|
config.setupFilesAfterEnv = ["<rootDir>/../scripts/jest/setupEnvE2E.js"];
|
|
|
|
module.exports = config;
|