> ## Documentation Index
> Fetch the complete documentation index at: https://supastack.dev/llms.txt
> Use this file to discover all available pages before exploring further.
> For the full documentation corpus in one file, fetch: https://supastack.dev/llms-full.txt

# 測試移動應用

執行確定性測試套件，然後在真實開發構建中驗證原生登入、連結、安全與購買。

## 安裝與配置

移動包內建確定性 Vitest 套件，覆蓋會話儲存、深連結、聊天流式傳輸與取消、權益、購買、離線快取和通知路由。它們在電腦上執行，無需 Expo、手機、提供商憑據或裝置設定。

```
corepack pnpm --filter @supastack/mobile test
corepack pnpm --filter @supastack/mobile typecheck
```


## 實現流程

在真實目標裝置上的 EAS 開發構建中驗證原生行為：登入和退出、重啟應用後恢復會話、開啟深連結、啟用應用鎖、關閉再開啟網路、註冊推送。商店購買和應用鎖無法在 Expo Go 中驗證。


## 驗證與排障

提交前針對預釋出後端執行生產構建配置。檢查包識別符號、版本來源、宣告的許可權，以及應用包中不含提供商金鑰。記錄每次釋出檢查所用的確切裝置和系統版本。


如果你想繼續完成設定，可以閱讀《[移動應用故障排除](https://supastack.dev/zh-tw/docs/mobile/troubleshooting.md)》。


## 下一篇

[移動應用故障排除](https://supastack.dev/zh-tw/docs/mobile/troubleshooting.md)
