CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
Blame · Line-by-line history
help-page.test.ts
Each line is annotated with the commit that last touched it. Click any SHA to jump to that commit and see the surrounding change.
| 80bed05 | 1 | /** |
| 2 | * Smoke test for the public /help quickstart page. Doesn't stub the DB — | |
| 3 | * the route itself doesn't touch the DB, and softAuth tolerates a missing | |
| 4 | * session cookie, so this works in the sandbox. | |
| 5 | */ | |
| 6 | ||
| 7 | import { test, expect } from "bun:test"; | |
| 8 | import app from "../app"; | |
| 9 | ||
| 10 | test("/help returns 200 with HTML body containing Getting started", async () => { | |
| 11 | const res = await app.request("/help"); | |
| 12 | expect(res.status).toBe(200); | |
| 13 | const body = await res.text(); | |
| 14 | expect(body).toContain("<html"); | |
| 15 | expect(body).toContain("Getting started"); | |
| 16 | }); |