Skip to content

Commit 5ed6d08

Browse files
committed
reduce reproduction code
1 parent 4d51f42 commit 5ed6d08

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/codegen/src/runner.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ describe('runCMKInWatchMode', () => {
4949

5050
console.log('update file');
5151
await writeFile(textFilePath, '2');
52-
await vi.waitFor(() => {
53-
assert(globalThis.changeCount === 2, `Expected changeCount to be 2, but got ${globalThis.changeCount}`);
54-
});
52+
await sleep(1000);
53+
assert(globalThis.changeCount === 2, `Expected changeCount to be 2, but got ${globalThis.changeCount}`);
5554
});
5655
});

0 commit comments

Comments
 (0)