mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
13 lines
337 B
TypeScript
13 lines
337 B
TypeScript
import { flushPromises } from '@vue/test-utils';
|
|
import { createAnimation } from '@ionic/vue';
|
|
import { vi } from 'vitest';
|
|
|
|
export const waitForRouter = async () => {
|
|
await flushPromises();
|
|
await new Promise((r) => setTimeout(r, 500));
|
|
}
|
|
|
|
export const mockAnimation = () => {
|
|
return vi.fn().mockImplementation(createAnimation);
|
|
}
|