@@ -165,27 +165,33 @@ Deno.test(
165165 } ,
166166) ;
167167
168- Deno . test ( "init - can start dev server" , async ( ) => {
169- await using tmp = await withTmpDir ( ) ;
170- const dir = tmp . dir ;
171- using _promptStub = stubPrompt ( "." ) ;
172- using _confirmStub = stubConfirm ( ) ;
173- await initProject ( dir , [ ] , { } ) ;
174- await expectProjectFile ( dir , "main.ts" ) ;
175- await expectProjectFile ( dir , "dev.ts" ) ;
168+ Deno . test ( {
169+ // TODO: For some reason this test is flaky in GitHub CI. It works when
170+ // testing locally on windows though. Not sure what's going on.
171+ ignore : Deno . build . os === "windows" && Deno . env . get ( "CI" ) !== undefined ,
172+ name : "init - can start dev server" ,
173+ fn : async ( ) => {
174+ await using tmp = await withTmpDir ( ) ;
175+ const dir = tmp . dir ;
176+ using _promptStub = stubPrompt ( "." ) ;
177+ using _confirmStub = stubConfirm ( ) ;
178+ await initProject ( dir , [ ] , { } ) ;
179+ await expectProjectFile ( dir , "main.ts" ) ;
180+ await expectProjectFile ( dir , "dev.ts" ) ;
176181
177- await patchProject ( dir ) ;
178- await withChildProcessServer (
179- dir ,
180- [ "task" , "dev" ] ,
181- async ( address ) => {
182- await withBrowser ( async ( page ) => {
183- await page . goto ( address ) ;
184- await page . locator ( "#decrement" ) . click ( ) ;
185- await waitForText ( page , "button + p" , "2" ) ;
186- } ) ;
187- } ,
188- ) ;
182+ await patchProject ( dir ) ;
183+ await withChildProcessServer (
184+ dir ,
185+ [ "task" , "dev" ] ,
186+ async ( address ) => {
187+ await withBrowser ( async ( page ) => {
188+ await page . goto ( address ) ;
189+ await page . locator ( "#decrement" ) . click ( ) ;
190+ await waitForText ( page , "button + p" , "2" ) ;
191+ } ) ;
192+ } ,
193+ ) ;
194+ } ,
189195} ) ;
190196
191197Deno . test ( "init - can start built project" , async ( ) => {
0 commit comments