chore: 更新依赖配置与测试工具

- 添加 uni-cloud 等云开发依赖
- 更新 vitest 测试配置,支持云函数 mock
- 扩展 uni-app mock 支持云函数调用
- 添加每日推送算法测试脚本
This commit is contained in:
2026-08-13 08:06:28 +08:00
parent f4c1bd957c
commit 17ada52928
5 changed files with 1870 additions and 33 deletions
@@ -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] ?? ''