Skip to content

Commit 886d9e4

Browse files
committed
wip
1 parent b2ce847 commit 886d9e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/codegen/src/runner.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)