mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +08:00
12 lines
297 B
TypeScript
12 lines
297 B
TypeScript
import { flushPromises } from '@vue/test-utils';
|
|
import { createAnimation } from '@ionic/vue';
|
|
|
|
export const waitForRouter = async () => {
|
|
await flushPromises();
|
|
await new Promise((r) => setTimeout(r, 500));
|
|
}
|
|
|
|
export const mockAnimation = () => {
|
|
return jest.fn(() => createAnimation());
|
|
}
|