ReactTestUtils.js — react Source File
Architecture documentation for ReactTestUtils.js, a javascript file in the react codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 7e8f04a0_dc70_8175_071e_addcb82a94d6["ReactTestUtils.js"] ac587885_e294_a1e9_b13f_5e7b920fdb42["react"] 7e8f04a0_dc70_8175_071e_addcb82a94d6 --> ac587885_e294_a1e9_b13f_5e7b920fdb42 style 7e8f04a0_dc70_8175_071e_addcb82a94d6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* 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.
*
* @noflow
*/
import * as React from 'react';
let didWarnAboutUsingAct = false;
export function act(callback) {
if (didWarnAboutUsingAct === false) {
didWarnAboutUsingAct = true;
console.error(
'`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. ' +
'Import `act` from `react` instead of `react-dom/test-utils`. ' +
'See https://react.dev/warnings/react-dom-test-utils for more info.',
);
}
return React.act(callback);
}
Domain
Subdomains
Functions
Dependencies
- react
Source
Frequently Asked Questions
What does ReactTestUtils.js do?
ReactTestUtils.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactTestUtils.js?
ReactTestUtils.js defines 1 function(s): act.
What does ReactTestUtils.js depend on?
ReactTestUtils.js imports 1 module(s): react.
Where is ReactTestUtils.js in the architecture?
ReactTestUtils.js is located at packages/react-dom/src/test-utils/ReactTestUtils.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom/src/test-utils).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free