Skip to content

Commit 5cd27ed

Browse files
committed
wip
1 parent 862cdab commit 5cd27ed

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

integration/vite-hmr-hdr-test.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ import dedent from "dedent";
55

66
import { test } from "./helpers/fixtures";
77
import * as Stream from "./helpers/stream";
8-
import {
9-
viteMajorTemplates,
10-
getTemplates,
11-
type Template,
12-
} from "./helpers/templates";
8+
import { viteMajorTemplates, getTemplates } from "./helpers/templates";
139
import * as Express from "./helpers/express";
1410

1511
const tsx = dedent;
@@ -87,7 +83,7 @@ templates.forEach((template) => {
8783
const dev = $(`pnpm dev --port ${port}`);
8884
await Stream.match(dev.stdout, url);
8985

90-
await workflow({ templateName: template.name, page, edit, url });
86+
await workflow({ isRsc, page, edit, url });
9187
});
9288

9389
test("express", async ({ page, edit, $ }) => {
@@ -107,7 +103,7 @@ templates.forEach((template) => {
107103
});
108104
await Stream.match(server.stdout, url);
109105

110-
await workflow({ templateName: template.name, page, edit, url });
106+
await workflow({ isRsc, page, edit, url });
111107
});
112108

113109
test("mdx", async ({ page, edit, $ }) => {
@@ -172,12 +168,12 @@ templates.forEach((template) => {
172168
});
173169

174170
async function workflow({
175-
templateName,
171+
isRsc,
176172
page,
177173
edit,
178174
url,
179175
}: {
180-
templateName: Template["name"];
176+
isRsc: boolean;
181177
page: Page;
182178
edit: (
183179
edits: Record<string, string | ((contents: string) => string)>,
@@ -383,7 +379,7 @@ async function workflow({
383379
"HDR updated: route & direct 2 & indirect 2",
384380
);
385381
// TODO: Investigate why this is flaky in CI for RSC Framework Mode
386-
if (!templateName.startsWith("rsc-")) {
382+
if (isRsc) {
387383
await expect(input).toHaveValue("stateful");
388384
}
389385

0 commit comments

Comments
 (0)