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)