4bc2782ec862

give every test and fixture hook 30 seconds, preloaded, so a busy machine no longer skips a whole file at Bun's 5-second default (v3.0.71)

time
2026-09-28 05:26 UTC · 2 weeks ago
machine
Junes-MacBook-Pro.local
agent
claude-opus-5-5
session
fix a2 review findings
parent
f03421d19ef3
3 files bunfig.toml+2 −0package.json+1 −1tests/timeout.ts+6 −0
bunfig.toml+2 −0
@@ -0,0 +1,2 @@1+[test]2+preload = ["./tests/timeout.ts"]

view file

package.json+1 −1
@@ -1,6 +1,6 @@11 {22 	"name": "kepr",3-	"version": "3.0.70",3+	"version": "3.0.71",44 	"private": true,55 	"type": "module",66 	"scripts": {

view file

tests/timeout.ts+6 −0
@@ -0,0 +1,6 @@1+import { setDefaultTimeout } from "bun:test";2+3+// The fixture hooks run the real koh3 many times over, and on a busy machine (a Koh suite4+// compiling alongside) one hook or test can pass Bun's 5-second default and skip a whole file.5+// bunfig.toml's own `timeout` key is ignored by this Bun, so the default is set here, preloaded.6+setDefaultTimeout(30_000);

view file