Skip to content

Commit

Permalink
Add ReactDOMClient to ServerIntegrationSelect
Browse files Browse the repository at this point in the history
  • Loading branch information
rickhanlonii committed Jan 27, 2024
1 parent 233b65d commit 1d17beb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils');

let React;
let ReactDOM;
let ReactDOMClient;
let ReactDOMServer;
let ReactTestUtils;

function initModules() {
// Reset warning cache.
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');

// Make them available to the helpers.
return {
ReactDOM,
ReactDOMClient,
ReactDOMServer,
ReactTestUtils,
};
Expand Down Expand Up @@ -253,7 +253,7 @@ describe('ReactDOMServerIntegrationSelect', () => {
<option value="first">First</option>
<option value="true">True</option>
</select>,
1,
4,
);
expect(e.firstChild.selected).toBe(false);
expect(e.lastChild.selected).toBe(true);
Expand All @@ -268,7 +268,7 @@ describe('ReactDOMServerIntegrationSelect', () => {
<option value="first">First</option>
<option value="undefined">Undefined</option>
</select>,
1,
4,
);
expect(e.firstChild.selected).toBe(true);
expect(e.lastChild.selected).toBe(false);
Expand Down

0 comments on commit 1d17beb

Please sign in to comment.