The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 1 | import { defineScene } from "../capture/scene.ts"; |
| 2 | |
| 3 | export default defineScene({ |
| 4 | title: "Test it against the real cloud", |
| 5 | chapter: "03-tests", |
| 6 | notes: |
| 7 | "Test.make + beforeAll(deploy(Stack)) deploys a full copy of the stack to its own stage, test_$USER, on real Cloudflare. The tests use the same typed client as the dashboard, including a typed LinkNotFound across HTTP. afterAll(destroy(Stack)) tears it down. alchemy dev is for trying it; pnpm test proves it on real infrastructure.", |
| 8 | async run(s) { |
| 9 | await s.sync({ except: ["test/api.test.ts"] }); |
| 10 | await s.editor.show("test/api.test.ts"); |
| 11 | s.pause(1); |
| 12 | |
| 13 | await s.terminal(async (t) => { |
| 14 | await t.run("test", "pnpm test", { |
| 15 | until: /Ran \d+ tests? across[\s\S]*❯\s*$/, |
| 16 | timeout: 300_000, |
| 17 | }); |
| 18 | await t.sleep(1500); |
| 19 | }); |
| 20 | }, |
| 21 | }); |