Skip to content

Commit fe246ff

Browse files
committed
Add ReactDOMClient to ServerIntegrationReconnecting
1 parent 233b65d commit fe246ff

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/react-dom/src/__tests__/ReactDOMServerIntegrationReconnecting-test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
const ReactDOMServerIntegrationUtils = require('./utils/ReactDOMServerIntegrationTestUtils');
1313

1414
let React;
15-
let ReactDOM;
15+
let ReactDOMClient;
1616
let ReactDOMServer;
1717
let ReactTestUtils;
1818

@@ -21,13 +21,13 @@ function initModules() {
2121
jest.resetModules();
2222

2323
React = require('react');
24-
ReactDOM = require('react-dom');
24+
ReactDOMClient = require('react-dom/client');
2525
ReactDOMServer = require('react-dom/server');
2626
ReactTestUtils = require('react-dom/test-utils');
2727

2828
// Make them available to the helpers.
2929
return {
30-
ReactDOM,
30+
ReactDOMClient,
3131
ReactDOMServer,
3232
ReactTestUtils,
3333
};
@@ -123,8 +123,8 @@ describe('ReactDOMServerIntegration', () => {
123123
it('should error reconnecting different attribute values', () =>
124124
expectMarkupMismatch(<div id="foo" />, <div id="bar" />));
125125

126-
it('can explicitly ignore errors reconnecting different element types of children', () =>
127-
expectMarkupMatch(
126+
it('should error reconnecting different element types of children', () =>
127+
expectMarkupMismatch(
128128
<div>
129129
<div />
130130
</div>,
@@ -354,8 +354,8 @@ describe('ReactDOMServerIntegration', () => {
354354
<div>{''}</div>,
355355
));
356356

357-
it('can explicitly ignore reconnecting more children', () =>
358-
expectMarkupMatch(
357+
it('can not ignore reconnecting more children', () =>
358+
expectMarkupMismatch(
359359
<div>
360360
<div />
361361
</div>,
@@ -365,8 +365,8 @@ describe('ReactDOMServerIntegration', () => {
365365
</div>,
366366
));
367367

368-
it('can explicitly ignore reconnecting fewer children', () =>
369-
expectMarkupMatch(
368+
it('can not ignore reconnecting fewer children', () =>
369+
expectMarkupMismatch(
370370
<div>
371371
<div />
372372
<div />
@@ -376,8 +376,8 @@ describe('ReactDOMServerIntegration', () => {
376376
</div>,
377377
));
378378

379-
it('can explicitly ignore reconnecting reordered children', () =>
380-
expectMarkupMatch(
379+
it('can not ignore reconnecting reordered children', () =>
380+
expectMarkupMismatch(
381381
<div suppressHydrationWarning={true}>
382382
<div />
383383
<span />

0 commit comments

Comments
 (0)