@@ -40,6 +40,10 @@ export default function getFrameworkTestConfig(pm: string) {
4040 route : "/test" ,
4141 expectedText : "C3_TEST" ,
4242 } ,
43+ verifyBuildCfTypes : {
44+ outputFile : "worker-configuration.d.ts" ,
45+ envInterfaceName : "Env" ,
46+ } ,
4347 flags : [
4448 "--skip-houston" ,
4549 "--no-install" ,
@@ -68,6 +72,10 @@ export default function getFrameworkTestConfig(pm: string) {
6872 route : "/test" ,
6973 expectedText : "C3_TEST" ,
7074 } ,
75+ verifyBuildCfTypes : {
76+ outputFile : "worker-configuration.d.ts" ,
77+ envInterfaceName : "Env" ,
78+ } ,
7179 flags : [
7280 "--skip-houston" ,
7381 "--no-install" ,
@@ -184,6 +192,10 @@ export default function getFrameworkTestConfig(pm: string) {
184192 route : "/" ,
185193 expectedText : "Congratulations! Your app is running." ,
186194 } ,
195+ verifyBuildCfTypes : {
196+ outputFile : "worker-configuration.d.ts" ,
197+ envInterfaceName : "Env" ,
198+ } ,
187199 flags : [ "--style" , "sass" ] ,
188200 } ,
189201 "gatsby:pages" : {
@@ -238,6 +250,10 @@ export default function getFrameworkTestConfig(pm: string) {
238250 route : "/" ,
239251 expectedText : "Hello!" ,
240252 } ,
253+ verifyBuildCfTypes : {
254+ outputFile : "worker-configuration.d.ts" ,
255+ envInterfaceName : "CloudflareBindings" ,
256+ } ,
241257 promptHandlers : [
242258 {
243259 matcher : / D o y o u w a n t t o i n s t a l l p r o j e c t d e p e n d e n c i e s \? / ,
@@ -257,6 +273,10 @@ export default function getFrameworkTestConfig(pm: string) {
257273 route : "/message" ,
258274 expectedText : "Hello Hono!" ,
259275 } ,
276+ verifyBuildCfTypes : {
277+ outputFile : "worker-configuration.d.ts" ,
278+ envInterfaceName : "CloudflareBindings" ,
279+ } ,
260280 promptHandlers : [
261281 {
262282 matcher : / D o y o u w a n t t o i n s t a l l p r o j e c t d e p e n d e n c i e s \? / ,
@@ -283,10 +303,6 @@ export default function getFrameworkTestConfig(pm: string) {
283303 route : "/" ,
284304 expectedText : "Welcome to Qwik" ,
285305 } ,
286- verifyBuildCfTypes : {
287- outputFile : "worker-configuration.d.ts" ,
288- envInterfaceName : "Env" ,
289- } ,
290306 } ,
291307 "qwik:workers" : {
292308 argv : [ "--platform" , "workers" ] ,
@@ -308,10 +324,6 @@ export default function getFrameworkTestConfig(pm: string) {
308324 route : "/" ,
309325 expectedText : "Welcome to Qwik" ,
310326 } ,
311- verifyBuildCfTypes : {
312- outputFile : "worker-configuration.d.ts" ,
313- envInterfaceName : "Env" ,
314- } ,
315327 } ,
316328 "remix:pages" : {
317329 argv : [ "--platform" , "pages" ] ,
@@ -327,10 +339,6 @@ export default function getFrameworkTestConfig(pm: string) {
327339 route : "/test" ,
328340 expectedText : "C3_TEST" ,
329341 } ,
330- verifyBuildCfTypes : {
331- outputFile : "worker-configuration.d.ts" ,
332- envInterfaceName : "Env" ,
333- } ,
334342 verifyBuild : {
335343 outputDir : "./build/client" ,
336344 script : "build" ,
@@ -353,10 +361,6 @@ export default function getFrameworkTestConfig(pm: string) {
353361 route : "/test" ,
354362 expectedText : "C3_TEST" ,
355363 } ,
356- verifyBuildCfTypes : {
357- outputFile : "worker-configuration.d.ts" ,
358- envInterfaceName : "Env" ,
359- } ,
360364 flags : [ "--typescript" , "--no-install" , "--no-git-init" ] ,
361365 } ,
362366 "next:pages" : {
@@ -506,6 +510,10 @@ export default function getFrameworkTestConfig(pm: string) {
506510 route : "/" ,
507511 expectedText : "Vite + React" ,
508512 } ,
513+ verifyBuildCfTypes : {
514+ outputFile : "worker-configuration.d.ts" ,
515+ envInterfaceName : "Env" ,
516+ } ,
509517 } ,
510518 "react:workers" : {
511519 argv : [ "--platform" , "workers" ] ,
@@ -534,6 +542,10 @@ export default function getFrameworkTestConfig(pm: string) {
534542 // not actually running the client side JS.
535543 expectedText : "Vite + React + TS" ,
536544 } ,
545+ verifyBuildCfTypes : {
546+ outputFile : "worker-configuration.d.ts" ,
547+ envInterfaceName : "Env" ,
548+ } ,
537549 } ,
538550 solid : {
539551 promptHandlers : [
@@ -558,6 +570,10 @@ export default function getFrameworkTestConfig(pm: string) {
558570 route : "/" ,
559571 expectedText : "Hello world" ,
560572 } ,
573+ verifyBuildCfTypes : {
574+ outputFile : "worker-configuration.d.ts" ,
575+ envInterfaceName : "Env" ,
576+ } ,
561577 } ,
562578 "svelte:pages" : {
563579 argv : [ "--platform" , "pages" ] ,
@@ -586,6 +602,10 @@ export default function getFrameworkTestConfig(pm: string) {
586602 route : "/test" ,
587603 expectedText : "C3_TEST" ,
588604 } ,
605+ verifyBuildCfTypes : {
606+ outputFile : "./src/worker-configuration.d.ts" ,
607+ envInterfaceName : "Env" ,
608+ } ,
589609 } ,
590610 "svelte:workers" : {
591611 argv : [ "--platform" , "workers" ] ,
@@ -608,6 +628,10 @@ export default function getFrameworkTestConfig(pm: string) {
608628 route : "/test" ,
609629 expectedText : "C3_TEST" ,
610630 } ,
631+ verifyBuildCfTypes : {
632+ outputFile : "./src/worker-configuration.d.ts" ,
633+ envInterfaceName : "Env" ,
634+ } ,
611635 } ,
612636 "vue:pages" : {
613637 argv : [ "--platform" , "pages" ] ,
@@ -621,6 +645,10 @@ export default function getFrameworkTestConfig(pm: string) {
621645 route : "/" ,
622646 expectedText : "Vite App" ,
623647 } ,
648+ verifyBuildCfTypes : {
649+ outputFile : "worker-configuration.d.ts" ,
650+ envInterfaceName : "Env" ,
651+ } ,
624652 flags : [ "--ts" ] ,
625653 } ,
626654 "vue:workers" : {
@@ -636,6 +664,10 @@ export default function getFrameworkTestConfig(pm: string) {
636664 route : "/" ,
637665 expectedText : "Vite App" ,
638666 } ,
667+ verifyBuildCfTypes : {
668+ outputFile : "worker-configuration.d.ts" ,
669+ envInterfaceName : "Env" ,
670+ } ,
639671 } ,
640672 } ;
641673}
0 commit comments