mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
015ff2ed66
This was causing a slowdown in one of the tests ESLintRuleExhaustiveDeps-test.js. Reverting until we figure out why.
24 lines
530 B
JavaScript
24 lines
530 B
JavaScript
/**
|
|
* Copyright (c) Meta Platforms, 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.
|
|
*
|
|
* @emails react-core
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
describe('ReactDOMInReactServer', () => {
|
|
beforeEach(() => {
|
|
jest.resetModules();
|
|
jest.mock('react', () => require('react/react.react-server'));
|
|
});
|
|
|
|
it('can require react-dom', () => {
|
|
// In RSC this will be aliased.
|
|
require('react');
|
|
require('react-dom');
|
|
});
|
|
});
|