Skip to content

Commit d92aea4

Browse files
committed
use vi
1 parent 46a5cec commit d92aea4

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
@@ -3,7 +3,7 @@ import { writeFile } from 'node:fs/promises';
33
import { join } from 'node:path';
44
import { platform } from 'node:process';
55
import chokidar from 'chokidar';
6-
import { describe, test } from 'vitest';
6+
import { describe, test, vi } from 'vitest';
77

88
async function sleep(ms: number): Promise<void> {
99
// eslint-disable-next-line no-promise-executor-return
@@ -68,7 +68,7 @@ describe('runCMKInWatchMode', () => {
6868
console.log('update file');
6969
await writeFile(textFilePath, '1');
7070
const startTime = Date.now();
71-
await waitFor(() => {
71+
await vi.waitFor(() => {
7272
console.log('elapsed', Date.now() - startTime);
7373
assert(globalThis.changeCount === 1, `Expected changeCount to be 1, but got ${globalThis.changeCount}`);
7474
});

0 commit comments

Comments
 (0)