ReactDOMInReactServer-test.js — react Source File
Architecture documentation for ReactDOMInReactServer-test.js, a javascript file in the react codebase.
Entity Profile
Source Code
/**
* 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');
});
});
Source
Frequently Asked Questions
What does ReactDOMInReactServer-test.js do?
ReactDOMInReactServer-test.js is a source file in the react codebase, written in javascript.
Where is ReactDOMInReactServer-test.js in the architecture?
ReactDOMInReactServer-test.js is located at packages/react-dom/src/__tests__/ReactDOMInReactServer-test.js (directory: packages/react-dom/src/__tests__).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free