pnpm test · run #4821

main @ 4f3c9d2 · ci · 9.8s
412 passed 3 failed 11 skipped 38 suites

failures

auth › refresh token rotates session tests/auth/refresh.test.ts:88
expected second refresh with a reused token to be rejected

  - expected: 401 Unauthorized
  + received: 200 OK

Likely cause: the session-reuse fast path added in #2129 returns the cached session before the rotation check runs. Reused refresh tokens are silently accepted.

billing › prorates plan downgrades tests/billing/prorate.test.ts:41
AssertionError: prorated credit for mid-cycle downgrade

  - expected: 1499
  + received: 1450

Likely cause: #2143 switched proration to floor-at-cents per line item; the fixture still expects round-then-sum. The new behavior looks correct — the test needs updating.

exports › csv stream ends cleanly on empty result tests/exports/csv.test.ts:130
Timeout of 5000ms exceeded. The stream emitted headers
but never emitted 'end'.

Likely cause: CsvStream.finish() is only called from the row loop, so a zero-row result never closes the stream. One-line fix: call it before the early return.

1 real regression (auth), 1 stale fixture (billing), 1 edge-case bug (exports). Want me to fix the auth rotation check first?

pinned example · published by the mayfly team — a real page would be gone by now. pages live a day, or 100 opens. mayfly.page