Skip to content

Commit 332bdad

Browse files
committed
Test resuming with serialization
1 parent 1aa544d commit 332bdad

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6339,7 +6339,7 @@ describe('ReactDOMFizzServer', () => {
63396339

63406340
const resumed = ReactDOMFizzServer.resumeToPipeableStream(
63416341
<App />,
6342-
prerendered.postponed,
6342+
JSON.parse(JSON.stringify(prerendered.postponed)),
63436343
);
63446344

63456345
// Create a separate stream so it doesn't close the writable. I.e. simple concat.
@@ -6431,7 +6431,7 @@ describe('ReactDOMFizzServer', () => {
64316431

64326432
const resumed = ReactDOMFizzServer.resumeToPipeableStream(
64336433
<App />,
6434-
prerendered.postponed,
6434+
JSON.parse(JSON.stringify(prerendered.postponed)),
64356435
{
64366436
onError(x) {
64376437
ssrErrors.push(x.message);
@@ -6574,7 +6574,7 @@ describe('ReactDOMFizzServer', () => {
65746574

65756575
const resumed = ReactDOMFizzServer.resumeToPipeableStream(
65766576
<App />,
6577-
prerendered.postponed,
6577+
JSON.parse(JSON.stringify(prerendered.postponed)),
65786578
{
65796579
onError(x) {
65806580
ssrErrors.push(x.message);
@@ -6729,7 +6729,7 @@ describe('ReactDOMFizzServer', () => {
67296729

67306730
const resumed = ReactDOMFizzServer.resumeToPipeableStream(
67316731
<App />,
6732-
prerendered.postponed,
6732+
JSON.parse(JSON.stringify(prerendered.postponed)),
67336733
{
67346734
onError(x) {
67356735
ssrErrors.push(x.message);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
481481

482482
const resumed = await ReactDOMFizzServer.resume(
483483
<App />,
484-
prerendered.postponed,
484+
JSON.parse(JSON.stringify(prerendered.postponed)),
485485
);
486486

487487
await readIntoContainer(prerendered.prelude);
@@ -523,7 +523,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
523523

524524
const resumed = await ReactDOMFizzServer.resume(
525525
<App />,
526-
prerendered.postponed,
526+
JSON.parse(JSON.stringify(prerendered.postponed)),
527527
);
528528

529529
await readIntoContainer(prerendered.prelude);
@@ -562,7 +562,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
562562

563563
const resumed = await ReactDOMFizzServer.resume(
564564
<App />,
565-
prerendered.postponed,
565+
JSON.parse(JSON.stringify(prerendered.postponed)),
566566
);
567567

568568
await readIntoContainer(prerendered.prelude);
@@ -610,7 +610,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
610610

611611
const resumed = await ReactDOMFizzServer.resume(
612612
<App />,
613-
prerendered.postponed,
613+
JSON.parse(JSON.stringify(prerendered.postponed)),
614614
);
615615

616616
await readIntoContainer(prerendered.prelude);
@@ -651,7 +651,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
651651

652652
const resumed = await ReactDOMFizzServer.resume(
653653
<App />,
654-
prerendered.postponed,
654+
JSON.parse(JSON.stringify(prerendered.postponed)),
655655
);
656656

657657
await readIntoContainer(prerendered.prelude);
@@ -692,7 +692,7 @@ describe('ReactDOMFizzStaticBrowser', () => {
692692

693693
const content = await ReactDOMFizzServer.resume(
694694
<App />,
695-
prerendered.postponed,
695+
JSON.parse(JSON.stringify(prerendered.postponed)),
696696
);
697697

698698
const html = await readContent(concat(prerendered.prelude, content));

0 commit comments

Comments
 (0)