diff --git a/packages/react-dom/src/__tests__/ReactDOMOption-test.js b/packages/react-dom/src/__tests__/ReactDOMOption-test.js index b8dc69b3f6b7d..156fc822f3944 100644 --- a/packages/react-dom/src/__tests__/ReactDOMOption-test.js +++ b/packages/react-dom/src/__tests__/ReactDOMOption-test.js @@ -11,16 +11,18 @@ describe('ReactDOMOption', () => { let React; - let ReactDOM; + let ReactDOMClient; let ReactDOMServer; let ReactTestUtils; + let act; beforeEach(() => { jest.resetModules(); React = require('react'); - ReactDOM = require('react-dom'); + ReactDOMClient = require('react-dom/client'); ReactDOMServer = require('react-dom/server'); ReactTestUtils = require('react-dom/test-utils'); + act = require('internal-test-utils').act; }); it('should flatten children to a string', () => { @@ -182,19 +184,28 @@ describe('ReactDOMOption', () => { expect(node.innerHTML).toBe('foobar'); }); - it('should set attribute for empty value', () => { + it('should set attribute for empty value', async () => { const container = document.createElement('div'); - const option = ReactDOM.render(