source: node_modules/react-dom/cjs/react-dom-test-utils.development.js@ a762898

Last change on this file since a762898 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 793 bytes
RevLine 
[a762898]1/**
2 * @license React
3 * react-dom-test-utils.development.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */
10
11"use strict";
12"production" !== process.env.NODE_ENV &&
13 (function () {
14 var React = require("react"),
15 didWarnAboutUsingAct = !1;
16 exports.act = function (callback) {
17 !1 === didWarnAboutUsingAct &&
18 ((didWarnAboutUsingAct = !0),
19 console.error(
20 "`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."
21 ));
22 return React.act(callback);
23 };
24 })();
Note: See TracBrowser for help on using the repository browser.