2 * Copyright (c) Meta Platforms, Inc. and affiliates.
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
8 import * as React from 'react';
9 import * as ReactTestUtils from 'react-dom/test-utils';
12 * React 19 moved act from react-dom/test-utils to react
13 * https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-react-dom-test-utils
17 ? (React.act as typeof ReactTestUtils.act)