@@ -5,23 +5,23 @@ import { runCommand, test } from "./helpers.js";
55// testing regarding the validation there are unit tests in src/__tests__/get-validated-wrangler-config-path.spec.ts
66
77describe ( "during development wrangler config files are validated" , ( ) => {
8- test ( "for the entry worker" , async ( { expect, seed, viteCommand } ) => {
8+ test ( "for the entry worker" , async ( { expect, seed, viteDev } ) => {
99 const projectPath = await seed ( "no-wrangler-config" ) ;
1010 runCommand ( `pnpm install` , projectPath ) ;
1111
12- const proc = await viteCommand ( "pnpm" , "dev" , projectPath ) ;
12+ const proc = viteDev ( projectPath ) ;
1313
1414 expect ( await proc . exitCode ) . not . toBe ( 0 ) ;
1515 expect ( proc . stderr ) . toMatch (
1616 / E r r o r : N o c o n f i g f i l e f o u n d i n t h e .* ? d i r e c t o r y /
1717 ) ;
1818 } ) ;
1919
20- test ( "for auxiliary workers" , async ( { expect, seed, viteCommand } ) => {
20+ test ( "for auxiliary workers" , async ( { expect, seed, viteDev } ) => {
2121 const projectPath = await seed ( "no-wrangler-config-for-auxiliary-worker" ) ;
2222 runCommand ( `pnpm install` , projectPath ) ;
2323
24- const proc = await viteCommand ( "pnpm" , "dev" , projectPath ) ;
24+ const proc = viteDev ( projectPath ) ;
2525
2626 expect ( await proc . exitCode ) . not . toBe ( 0 ) ;
2727 expect ( proc . stderr ) . toMatch (
0 commit comments