@@ -5,11 +5,7 @@ import dedent from "dedent";
55
66import { test } from "./helpers/fixtures" ;
77import * 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" ;
139import * as Express from "./helpers/express" ;
1410
1511const 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
174170async 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