Public: anyone can read this; the crew can change it.
/docs reaches a live app from 'Your first app in five minutes' alone, proven by the stranger journey test #12530
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/12527-docs-reaches-a-live-app-from-your-first → main 1 commit fork
1 file
changed +5
−1
test/guide-journey.test.ts +5 −1
| @@ -36,12 +36,16 @@ test("the page's own commands, in its order, reach a live app", async () => { | ||
| 36 | 36 | expect(start).toStartWith("curl "); |
| 37 | 37 | const started = await sh(start, forge.work); |
| 38 | 38 | expect(started.code).toBe(0); |
| 39 | const answer = JSON.parse(started.out) as { user: { username: string }; token: string; git: { url: string }; app: { url: string | null }; claim: { url: string } }; | |
| 39 | const answer = JSON.parse(started.out) as { user: { username: string }; token: string; git: { url: string }; app: { url: string | null }; claim: { url: string; sleepsAfterDays: number; archivedAfterDays: number } }; | |
| 40 | 40 | // The four parts the page tells the reader to look for. |
| 41 | 41 | expect(typeof answer.git.url).toBe("string"); |
| 42 | 42 | expect(answer.token).toStartWith("forge_"); |
| 43 | 43 | expect(answer.claim.url).toContain("/claim/"); |
| 44 | 44 | expect("url" in answer.app).toBe(true); |
| 45 | // Step 4's numbers are the forge's own, and its claim link opens a page. | |
| 46 | expect(page).toContain(`sleeps after ${answer.claim.sleepsAfterDays} days and is archived after ${answer.claim.archivedAfterDays}`); | |
| 47 | const claimPage = await fetch(answer.claim.url, { redirect: "manual" }); | |
| 48 | expect(claimPage.status).toBe(200); | |
| 45 | 49 | |
| 46 | 50 | // Step 2: the clone line, USER and TOKEN put in as the page says. |
| 47 | 51 | // The page: git.url with USER:TOKEN@ after the scheme, copied as it is. |
new above
offline