testingtraceability
Test explanation
Tests linked to what they prove — semantics above assertion strings.
session_expiry {
expired tokens must reject requests
proven by ["./auth.test.ts".rejectsExpiredToken]
}test("rejectsExpiredToken", async () => {
const res = await request(app)
.get("/me")
.set("Authorization", `Bearer ${expired}`);
expect(res.status).toBe(401);
});