Set up Spana in your repo
Paste into Claude Code, Codex, Cursor, or Antigravity to install spana-test, generate spana.config.ts, write a smoke flow, and run spana doctor.
Set up spana (spana-test) for fast, TypeScript-native E2E testing in this repository.
Follow these steps:
1. Inspect the workspace to detect our targets (Web, Capacitor iOS/Android, React Native, Electron, or Electrobun) and package manager (bun / npm / pnpm).
2. Install spana-test as a devDependency (`bun add -d spana-test` or `npm install -D spana-test`).
3. Create `spana.config.ts` using `defineConfig` from `spana-test`:
- Configure `apps` for our detected targets (e.g. `apps.web.url`, `apps.android`, `apps.ios`).
- Enable fast web defaults: `execution.web: { warmBrowser: true, instantAnimations: true }`.
- Configure `artifacts: { outputDir: ".spana/artifacts", captureOnFailure: true }` and `reporters: ["console", "html"]`.
- If this repo uses GitHub Actions, also show how to add `--changed-since origin/main --reporter console,github` with `decisionFilter` / `pathRuleFilter`.
4. Add a first realistic smoke flow in `flows/smoke.flow.ts` using `flow()` and stable `{ testID }` selectors (use `systemUI()` only for native OS sheets/OAuth).
5. Run `npx spana doctor`, `npx spana validate-config`, `npx spana validate ./flows`, and verify `npx spana test` passes.
Docs & full LLM reference: https://spana.antonwester.se/llms-full.txt

