Prove every one.
A campaign gives your coding agent a target. Every bug it finds lands in your GitHub or Gitea as an issue, with a test that fails until you fix it.
A refund that pays out twice.Checkout · high · unnoticed for 107 days
import { endpoint } from "@gfdelarue/testkit/environment";import { expect, test } from "vitest";test("a refund pays out once", async () => { const url = `${endpoint("api")}/orders/8841/refunds`; const first = await fetch(url, { method: "POST" }); const second = await fetch(url, { method: "POST" }); expect(first.status).toBe(201); expect(second.status).toBe(409);});
Expected 409. Received 201.
#1400 A refund pays out twice
- Expected
- 409 on the second request
- Observed
- 201, and a second payout
- Root cause
- A retry with no idempotency key, since
42c7079 - Reproduce
- Run
refund.test.ts