Files
2022-09-06 09:07:33 -04:00

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());
}