Close audit test leftovers inside each test (deploy build Bun 1.3 rejects hook timeouts) (#88) #40
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/jev_antispam_bot!40
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/88-bun13-hook-compat"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #39 (ticket: https://agentboard.icefish-betta.ts.net/#88).
Problem: the Easypanel deploy of
9cefa2dfailed. The deploy build runs Nixpacks, which ships Bun 1.3.0, and executesbun run check. CI runs Bun 1.4.0. Bun 1.3 rejects any timeout argument on a hook: bothbeforeEach(fn, 60_000)andbeforeEach(fn, { timeout })throwbeforeEach() expects a function as the second argumentwhen the module loads. That broke the build even though the integration tests themselves are skipped there. Production is still running the previous build,db8576c.Fix: the leftover cleanup now runs at the start of each integration test, inside the
integrationwrapper and within that test's 60s budget, instead of in abeforeEachhook with a timeout. The behavior #39 reviewed is unchanged: whatever a timed-out test leaves behind is closed before the next test's fixture truncates the tables. All 24 tests in the file go throughintegration. Docs updated.Verification:
bun run checkgives 528 pass, 0 fail.beforeEacherror. One local-only failure remains,telegram-preview.tls. It is caused by this host's proxy/CA environment and passed in the actual deploy build.src/audit-outbox.integration.test.tsruns 24/24.