test: migrate test runner to vitest (#12206)

This commit is contained in:
neverland
2023-08-20 18:48:09 +08:00
committed by GitHub
parent 633e48a645
commit 694daef6ea
374 changed files with 38189 additions and 31347 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
import { raf, cancelRaf } from '../src/utils';
test('raf', async () => {
const spy = jest.fn();
const spy = vi.fn();
raf(spy);
expect(spy).toHaveBeenCalledTimes(1);