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