mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
import Vue from 'vue';
|
|
import { mount, TransitionStub } from '@vue/test-utils';
|
|
|
|
// prevent vue warning log
|
|
Vue.config.silent = true;
|
|
|
|
// stub transition
|
|
Vue.component('transition', TransitionStub as any);
|
|
|
|
// promisify setTimeout
|
|
export function later(delay: number = 0): Promise<void> {
|
|
return new Promise((resolve) => {
|
|
setTimeout(resolve, delay);
|
|
});
|
|
}
|
|
|
|
export * from './dom';
|
|
export * from './event';
|
|
export { mount };
|