Files
gmTouringMiniApp/test/setupTests.ts
T

13 lines
276 B
TypeScript

import { vi } from 'vitest'
import { unref } from 'vue'
const uniMock = {
getStorageSync: vi.fn(),
getSystemInfoSync: vi.fn(() => ({ uniPlatform: 'mp-weixin' })),
setStorage: vi.fn(),
showToast: vi.fn(),
}
vi.stubGlobal('uni', uniMock)
vi.stubGlobal('unref', unref)