if (!res.ok) throw new Error(`Auth failed: $res.status`);
+ Response 200 (application/json) + Attributes + access_token: abcdef12345 (string) + refresh_token: zyx987 (string)
name: Contract Tests (Dredd)
You can verify the health endpoint:
/** * Dredd before hook – runs before each transaction. * If the transaction expects an Authorization header, inject the token. */ before(async (transactions) => const token = await getToken(); sammmnextdoor with dredd
- name: Install dependencies run: npm ci
The Judge doesn’t knock. He kicks. When the perp—some juiced-up creep who’s been mutilating block residents for kicks—goes to ground in Sector 179, the Hall of Justice has nothing. No cameras. No Citi-Def snitches. Just a whisper from an anonymous data-squirt: “Check the service duct behind Level 43 recycler. 0400 shift change.” He kicks
# Run the suite npm run dredd