For AI agents: fetch the complete documentation index at /llms.txt, the full documentation corpus at /llms-full.txt, the agent skill at /skill.md, or this page as Markdown at /zh/docs/mobile/testing.md (or send Accept: text/markdown).
测试移动应用
运行确定性测试套件,然后在真实开发构建中验证原生登录、链接、安全与购买。
安装与配置
移动包内置确定性 Vitest 套件,覆盖会话存储、深链接、聊天流式传输与取消、权益、购买、离线缓存和通知路由。它们在电脑上运行,无需 Expo、手机、提供商凭据或设备设置。
corepack pnpm --filter @supastack/mobile test
corepack pnpm --filter @supastack/mobile typecheck实现流程
在真实目标设备上的 EAS 开发构建中验证原生行为:登录和退出、重启应用后恢复会话、打开深链接、启用应用锁、关闭再打开网络、注册推送。商店购买和应用锁无法在 Expo Go 中验证。
验证与排障
提交前针对预发布后端运行生产构建配置。检查包标识符、版本来源、声明的权限,以及应用包中不含提供商密钥。记录每次发布检查所用的确切设备和系统版本。
如果你想继续完成设置,可以阅读《移动应用故障排除》。