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 46a5cec commit d92aea4Copy full SHA for d92aea4
1 file changed
packages/codegen/src/runner.test.ts
@@ -3,7 +3,7 @@ import { writeFile } from 'node:fs/promises';
3
import { join } from 'node:path';
4
import { platform } from 'node:process';
5
import chokidar from 'chokidar';
6
-import { describe, test } from 'vitest';
+import { describe, test, vi } from 'vitest';
7
8
async function sleep(ms: number): Promise<void> {
9
// eslint-disable-next-line no-promise-executor-return
@@ -68,7 +68,7 @@ describe('runCMKInWatchMode', () => {
68
console.log('update file');
69
await writeFile(textFilePath, '1');
70
const startTime = Date.now();
71
- await waitFor(() => {
+ await vi.waitFor(() => {
72
console.log('elapsed', Date.now() - startTime);
73
assert(globalThis.changeCount === 1, `Expected changeCount to be 1, but got ${globalThis.changeCount}`);
74
});
0 commit comments