@@ -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" ] ,
@@ -568,7 +584,7 @@ export default function getFrameworkTestConfig(pm: string) {
568584 } ,
569585 {
570586 matcher : / A d d t y p e c h e c k i n g w i t h T y p e s c r i p t / ,
571- input : [ keys . down , keys . enter ] ,
587+ input : [ keys . enter ] ,
572588 } ,
573589 {
574590 matcher : / W h a t w o u l d y o u l i k e t o a d d t o y o u r p r o j e c t / ,
@@ -597,6 +613,10 @@ export default function getFrameworkTestConfig(pm: string) {
597613 route : "/test" ,
598614 expectedText : "C3_TEST" ,
599615 } ,
616+ verifyBuildCfTypes : {
617+ outputFile : "./src/worker-configuration.d.ts" ,
618+ envInterfaceName : "Env" ,
619+ } ,
600620 } ,
601621 "svelte:workers" : {
602622 argv : [ "--platform" , "workers" ] ,
@@ -607,7 +627,7 @@ export default function getFrameworkTestConfig(pm: string) {
607627 } ,
608628 {
609629 matcher : / A d d t y p e c h e c k i n g w i t h T y p e s c r i p t / ,
610- input : [ keys . down , keys . enter ] ,
630+ input : [ keys . enter ] ,
611631 } ,
612632 {
613633 matcher : / W h a t w o u l d y o u l i k e t o a d d t o y o u r p r o j e c t / ,
@@ -630,6 +650,10 @@ export default function getFrameworkTestConfig(pm: string) {
630650 route : "/test" ,
631651 expectedText : "C3_TEST" ,
632652 } ,
653+ verifyBuildCfTypes : {
654+ outputFile : "./src/worker-configuration.d.ts" ,
655+ envInterfaceName : "Env" ,
656+ } ,
633657 } ,
634658 "vue:pages" : {
635659 argv : [ "--platform" , "pages" ] ,
@@ -643,6 +667,10 @@ export default function getFrameworkTestConfig(pm: string) {
643667 route : "/" ,
644668 expectedText : "Vite App" ,
645669 } ,
670+ verifyBuildCfTypes : {
671+ outputFile : "worker-configuration.d.ts" ,
672+ envInterfaceName : "Env" ,
673+ } ,
646674 flags : [ "--ts" ] ,
647675 } ,
648676 "vue:workers" : {
@@ -658,6 +686,10 @@ export default function getFrameworkTestConfig(pm: string) {
658686 route : "/" ,
659687 expectedText : "Vite App" ,
660688 } ,
689+ verifyBuildCfTypes : {
690+ outputFile : "worker-configuration.d.ts" ,
691+ envInterfaceName : "Env" ,
692+ } ,
661693 } ,
662694 } ;
663695}
0 commit comments