We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d51f42 commit a125f52Copy full SHA for a125f52
1 file changed
packages/codegen/src/runner.test.ts
@@ -43,14 +43,12 @@ describe('runCMKInWatchMode', () => {
43
44
console.log('update file');
45
await writeFile(textFilePath, '1');
46
- await vi.waitFor(() => {
47
- assert(globalThis.changeCount === 1, `Expected changeCount to be 1, but got ${globalThis.changeCount}`);
48
- });
+ await sleep(1000);
+ assert(globalThis.changeCount === 1, `Expected changeCount to be 1, but got ${globalThis.changeCount}`);
49
50
51
await writeFile(textFilePath, '2');
52
53
- assert(globalThis.changeCount === 2, `Expected changeCount to be 2, but got ${globalThis.changeCount}`);
54
+ assert(globalThis.changeCount === 2, `Expected changeCount to be 2, but got ${globalThis.changeCount}`);
55
});
56
0 commit comments