test: fix jest failure

This commit is contained in:
chenjiahan
2021-09-05 16:33:28 +08:00
parent 911d0669de
commit ee1ee0fe29
20 changed files with 55 additions and 14 deletions

View File

@@ -1,12 +1 @@
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
// @ts-ignore
import vant from '../../dist/package-entry';
import 'jest-canvas-mock';
declare global {
interface Window {
vant: any;
}
}
window.vant = vant;