diff --git a/packages/react-dom/src/__tests__/ReactDOMSelection-test.internal.js b/packages/react-dom/src/__tests__/ReactDOMSelection-test.internal.js index 251e98d67533d..9457137ff4f5a 100644 --- a/packages/react-dom/src/__tests__/ReactDOMSelection-test.internal.js +++ b/packages/react-dom/src/__tests__/ReactDOMSelection-test.internal.js @@ -10,16 +10,18 @@ 'use strict'; let React; -let ReactDOM; +let ReactDOMClient; let ReactDOMSelection; +let act; let getModernOffsetsFromPoints; describe('ReactDOMSelection', () => { beforeEach(() => { React = require('react'); - ReactDOM = require('react-dom'); + ReactDOMClient = require('react-dom/client'); ReactDOMSelection = require('react-dom-bindings/src/client/ReactDOMSelection'); + act = require('internal-test-utils').act; ({getModernOffsetsFromPoints} = ReactDOMSelection); }); @@ -74,53 +76,57 @@ describe('ReactDOMSelection', () => { // Complicated example derived from a real-world DOM tree. Has a bit of // everything. - function getFixture() { - return ReactDOM.render( -