The best way to control Claude Code, Codex and more from any computer or phone

main
ts 21 lines 837 Bytes
Raw
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 });