12
12
const ReactDOMServerIntegrationUtils = require ( './utils/ReactDOMServerIntegrationTestUtils' ) ;
13
13
14
14
let React ;
15
- let ReactDOM ;
15
+ let ReactDOMClient ;
16
16
let ReactDOMServer ;
17
17
let ReactTestUtils ;
18
18
@@ -21,13 +21,13 @@ function initModules() {
21
21
jest . resetModules ( ) ;
22
22
23
23
React = require ( 'react' ) ;
24
- ReactDOM = require ( 'react-dom' ) ;
24
+ ReactDOMClient = require ( 'react-dom/client ' ) ;
25
25
ReactDOMServer = require ( 'react-dom/server' ) ;
26
26
ReactTestUtils = require ( 'react-dom/test-utils' ) ;
27
27
28
28
// Make them available to the helpers.
29
29
return {
30
- ReactDOM ,
30
+ ReactDOMClient ,
31
31
ReactDOMServer,
32
32
ReactTestUtils,
33
33
} ;
@@ -123,8 +123,8 @@ describe('ReactDOMServerIntegration', () => {
123
123
it ( 'should error reconnecting different attribute values' , ( ) =>
124
124
expectMarkupMismatch ( < div id = "foo" /> , < div id = "bar" /> ) ) ;
125
125
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 (
128
128
< div >
129
129
< div />
130
130
</ div > ,
@@ -354,8 +354,8 @@ describe('ReactDOMServerIntegration', () => {
354
354
< div > { '' } </ div > ,
355
355
) ) ;
356
356
357
- it ( 'can explicitly ignore reconnecting more children' , ( ) =>
358
- expectMarkupMatch (
357
+ it ( 'can not ignore reconnecting more children' , ( ) =>
358
+ expectMarkupMismatch (
359
359
< div >
360
360
< div />
361
361
</ div > ,
@@ -365,8 +365,8 @@ describe('ReactDOMServerIntegration', () => {
365
365
</ div > ,
366
366
) ) ;
367
367
368
- it ( 'can explicitly ignore reconnecting fewer children' , ( ) =>
369
- expectMarkupMatch (
368
+ it ( 'can not ignore reconnecting fewer children' , ( ) =>
369
+ expectMarkupMismatch (
370
370
< div >
371
371
< div />
372
372
< div />
@@ -376,8 +376,8 @@ describe('ReactDOMServerIntegration', () => {
376
376
</ div > ,
377
377
) ) ;
378
378
379
- it ( 'can explicitly ignore reconnecting reordered children' , ( ) =>
380
- expectMarkupMatch (
379
+ it ( 'can not ignore reconnecting reordered children' , ( ) =>
380
+ expectMarkupMismatch (
381
381
< div suppressHydrationWarning = { true } >
382
382
< div />
383
383
< span />
0 commit comments