chore: 更新依赖配置与测试工具
- 添加 uni-cloud 等云开发依赖 - 更新 vitest 测试配置,支持云函数 mock - 扩展 uni-app mock 支持云函数调用 - 添加每日推送算法测试脚本
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { vi } from 'vitest'
|
||||
|
||||
const uni = {
|
||||
setNavigationBarTitle: vi.fn(),
|
||||
getStorageSync: vi.fn((key: string) => {
|
||||
const store: Record<string, string> = (globalThis as any).__uniStorage__ ?? {}
|
||||
return store[key] ?? ''
|
||||
|
||||
Reference in New Issue
Block a user