@@ -176,7 +176,7 @@ Deno.test("init - can start dev server", async () => {
176176 await patchProject ( dir ) ;
177177 await withChildProcessServer (
178178 dir ,
179- path . join ( dir , "dev.ts" ) ,
179+ "dev" ,
180180 async ( address ) => {
181181 await withBrowser ( async ( page ) => {
182182 await page . goto ( address ) ;
@@ -201,7 +201,7 @@ Deno.test("init - can start built project", async () => {
201201
202202 // Build
203203 await new Deno . Command ( Deno . execPath ( ) , {
204- args : [ "run" , "-A" , path . join ( dir , "dev.ts" ) , "build" ] ,
204+ args : [ "task" , "build" ] ,
205205 stdin : "null" ,
206206 stdout : "piped" ,
207207 stderr : "piped" ,
@@ -210,7 +210,7 @@ Deno.test("init - can start built project", async () => {
210210
211211 await withChildProcessServer (
212212 dir ,
213- path . join ( dir , "main.ts" ) ,
213+ "start" ,
214214 async ( address ) => {
215215 await withBrowser ( async ( page ) => {
216216 await page . goto ( address ) ;
@@ -234,7 +234,7 @@ Deno.test("init - errors on missing build cache in prod", async () => {
234234 await patchProject ( dir ) ;
235235
236236 const cp = await new Deno . Command ( Deno . execPath ( ) , {
237- args : [ "run " , "-A" , "main.ts "] ,
237+ args : [ "task " , "start " ] ,
238238 stdin : "null" ,
239239 stdout : "piped" ,
240240 stderr : "piped" ,
0 commit comments