File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ async function waitFor(fn: () => void) {
2323 error = e ;
2424 }
2525 }
26- runFn ( ) ; // First, execute immediately
2726 const intervalTimer = setInterval ( ( ) => {
2827 runFn ( ) ;
2928 } , 50 ) ;
@@ -35,6 +34,7 @@ async function waitFor(fn: () => void) {
3534 reject ( new Error ( 'unreachable' ) ) ;
3635 }
3736 } , 1000 ) ;
37+ runFn ( ) ; // First, execute immediately
3838 } ) ;
3939}
4040
@@ -73,7 +73,7 @@ describe('runCMKInWatchMode', () => {
7373 await writeFile ( textFilePath , '1' ) ;
7474 const startTime = Date . now ( ) ;
7575 await waitFor ( ( ) => {
76- console . log ( 'elapsed' , Date . now ( ) - startTime ) ;
76+ console . log ( 'elapsed' , Date . now ( ) - startTime , globalThis . changeCount ) ;
7777 assert ( globalThis . changeCount === 1 , `Expected changeCount to be 1, but got ${ globalThis . changeCount } ` ) ;
7878 } ) ;
7979
You can’t perform that action at this time.
0 commit comments