mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli): update jest setup config
This commit is contained in:
parent
5f7aad02a4
commit
f0482c7eec
@ -1 +1,12 @@
|
|||||||
|
/* eslint-disable-next-line @typescript-eslint/ban-ts-comment */
|
||||||
|
// @ts-ignore
|
||||||
|
import vant from '../../dist/package-entry';
|
||||||
import 'jest-canvas-mock';
|
import 'jest-canvas-mock';
|
||||||
|
|
||||||
|
declare global {
|
||||||
|
interface Window {
|
||||||
|
vant: any;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
window.vant = vant;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user