|
1 | 1 | # @clerk/expo verification map |
2 | 2 |
|
3 | | -This directory is the maintained source for verifying the user-facing behavior of `@clerk/expo` through the `expo-native` fixture app in `integration/templates/expo-native`. The fixture runs as a Debug dev client that loads its JS, and `packages/expo` with it, from a local Metro server. Read this index before driving the app, then use the matching feature file as the recipe. Every recipe runs through `.claude/skills/verify-clerk-expo/bin/control-clerk-expo` and the golden specs under `specs/golden/<feature>/`. |
| 3 | +This directory is the maintained source for verifying the user-facing behavior of `@clerk/expo` through the `expo-native` fixture app in `integration/templates/expo-native`. On a local device the fixture runs as a Debug dev client that loads its JS, and `packages/expo` with it, from a local Metro server. On a borrowed device it runs as a standalone Release build of a pushed commit, with the JS embedded. Read this index before driving the app, then use the matching feature file as the recipe. Every recipe runs through `.claude/skills/verify-clerk-expo/bin/control-clerk-expo` and the golden specs under `specs/golden/<feature>/`. |
4 | 4 |
|
5 | 5 | ## Baseline preconditions |
6 | 6 |
|
7 | 7 | - Run commands from the root of a clerk/javascript worktree. Run `pnpm install` and `npm ci --prefix .claude/skills/verify-clerk-expo` once there. Paths that start with `.verify/` or `specs/` are inside the skill directory. |
8 | | -- Run `.claude/skills/verify-clerk-expo/bin/control-clerk-expo doctor --platform ios` (or `android`) first. Every check is `ok` except `build` before the first `.claude/skills/verify-clerk-expo/bin/control-clerk-expo up`. |
| 8 | +- Run `.claude/skills/verify-clerk-expo/bin/control-clerk-expo doctor --platform ios` (or `android`) first. Every check is `ok` except `build` before the first `.claude/skills/verify-clerk-expo/bin/control-clerk-expo up`. On a machine that cannot run the device, `doctor --backend remote` checks the borrowed-device path, and the session builds a pushed commit, so commit and push before `up` and before a `run` that follows an edit. |
9 | 9 | - `up` needs a credential for creating throwaway Clerk applications: `CLERK_PLATFORM_API_KEY` or `CLERK_PLATFORM_API_KEY_FILE`, a cloud environment's credential, or a 1Password reference the machine holds outside the repo. `doctor` says which one it found and prints one fix line when there is none. Do not read or print the key. |
10 | | -- The CLI drives only its own lane devices. On iOS that is `verify-ios-<n>`, cloned from `Clerk Verify Template iOS`. On Android it is `Clerk_Verify_Pixel` booted `-read-only` as `emulator-5560` or `emulator-5562`. Never drive a simulator or emulator the CLI did not create, or a device another worktree holds. |
| 10 | +- The CLI drives only devices it owns: a local lane, or a simulator or emulator it borrowed on a CI runner. On iOS a lane is `verify-ios-<n>`, cloned from `Clerk Verify Template iOS`. On Android it is `Clerk_Verify_Pixel` booted `-read-only` as `emulator-5560` or `emulator-5562`. Never drive a simulator or emulator the CLI did not create, or a device another worktree holds. |
11 | 11 | - Every launch gets a new `verifyStorageScope`, so no spec inherits a session from another spec. |
12 | 12 |
|
13 | 13 | ## Test users and sign-in |
@@ -50,11 +50,11 @@ Rules: |
50 | 50 |
|
51 | 51 | ## Proof and skip reporting |
52 | 52 |
|
53 | | -- A proof is a passing `.claude/skills/verify-clerk-expo/bin/control-clerk-expo run` whose run directory holds `video.mp4`, `screenshots/`, `states.jsonl`, `state.json`, `app.log`, and `e2e/report.json`. `states.jsonl` is the state proof on both platforms. On Android `app.log` also carries the `[verify]` console lines. On iOS it carries only the app's native log lines, and the JS console lines, a JS change's own log lines included, are in `.verify/runtime/metro-<port>.log`. Read the run's whole window there by `runId`, as `references/freshness.md` describes. |
| 53 | +- A proof is a passing `.claude/skills/verify-clerk-expo/bin/control-clerk-expo run` whose run directory holds `video.mp4`, `screenshots/`, `states.jsonl`, `state.json`, `app.log`, and `e2e/report.json`. `states.jsonl` is the state proof on both platforms. On Android `app.log` also carries the `[verify]` console lines. On a local iOS device it carries only the app's native log lines, and the JS console lines, a JS change's own log lines included, are in `.verify/runtime/metro-<port>.log`. Read the run's whole window there by `runId`, as `references/freshness.md` describes. On a borrowed iOS device there are no JS console lines anywhere and no Metro log, so a JS change is proven from `states.jsonl` and a screenshot. |
54 | 54 | - Name the run id, the platform, and the specs in the PR. Attach with `.claude/skills/verify-clerk-expo/bin/control-clerk-expo attach <run-id> --pr <n>`. |
55 | 55 | - Four specs carry `form-entry`: `custom-flow-sign-in/complete`, `custom-flow-sign-up/request-code`, `custom-flow-sign-up/complete`, and `native-auth-view/complete`. None has a recorded passing run. Report a skipped one as skipped with the reason the CLI prints, `skipped by --skip form-entry`, and never as verified through a ticket launch. |
56 | 56 | - `custom-flow-sign-in/request-code` and `native-auth-view/request-code` (iOS) type no code or password, so `--skip form-entry` still runs them and they prove their flow up to the code screen. Sign-up has no such spec. |
57 | | -- A spec limited to one platform reports as skipped on the other. Say which platform each proof ran on. |
| 57 | +- A spec limited to one platform reports as skipped on the other. Say which platform, and local or borrowed device, each proof ran on. |
58 | 58 |
|
59 | 59 | ## Feature entry contract |
60 | 60 |
|
|
0 commit comments