@@ -7,7 +7,7 @@ suite('Extension Test Suite', () => {
77
88 // TypeScript takes a while to wake up and there's unfortunately no good way to wait for it
99 async function waitForTS ( command , commandArgs , condition ) {
10- for ( let i = 0 ; i < 1000 ; i ++ ) {
10+ for ( let i = 0 ; i < 5000 ; i ++ ) {
1111 const commandResult = await vscode . commands . executeCommand ( command , ...commandArgs ) ;
1212 if ( condition ( commandResult ) ) {
1313 return commandResult ;
@@ -32,7 +32,7 @@ suite('Extension Test Suite', () => {
3232
3333 const hasAstroRef = references . some ( ( ref ) => ref . uri . path . includes ( 'MyAstroComponent.astro' ) ) ;
3434 assert . strictEqual ( hasAstroRef , true , 'Should find Astro reference' ) ;
35- } ) . timeout ( 22000 ) ;
35+ } ) . timeout ( 50000 ) ;
3636
3737 test ( 'can get completions for Astro components' , async ( ) => {
3838 const doc = await vscode . workspace . openTextDocument (
@@ -49,7 +49,7 @@ suite('Extension Test Suite', () => {
4949 return item . insertText === 'MyAstroComponent' ;
5050 } ) ;
5151 assert . strictEqual ( hasAstroCompletion , true , 'Should find Astro component completion' ) ;
52- } ) . timeout ( 12000 ) ;
52+ } ) . timeout ( 50000 ) ;
5353
5454 test ( 'can get implementations inside Astro files' , async ( ) => {
5555 const doc = await vscode . workspace . openTextDocument (
@@ -66,5 +66,5 @@ suite('Extension Test Suite', () => {
6666 impl . uri . path . includes ( 'MyAstroComponent' ) ,
6767 ) ;
6868 assert . strictEqual ( hasAstroImplementation , true , 'Should find Astro implementation' ) ;
69- } ) . timeout ( 12000 ) ;
69+ } ) . timeout ( 50000 ) ;
7070} ) ;
0 commit comments