Changelog - 2026-10-27
dev-configs testing export adds spawnSyncBounded and a repo-tmp preload
EnhancementIn one line. Test helpers that were copied into several packages now live in @venizia/dev-configs/testing. Ships in 0.4.4.
What changed
spawnSyncBounded({ cmd, timeout? }).Bun.spawnSyncwith a bound: it kills the child with SIGKILL aftertimeout(default 120 000 ms) and throws[spawnSyncBounded] did not exit within N ms, killed | cmd: .... A sync spawn blocks the worker thread, so bun's own test timeout cannot stop a stuck child.useRepoTmp({ root? })pointsTMPDIRat<repository>/.agents/local/tmp/tests(the repository is the nearest folder with a.git), makes an empty.gitmarker there, setsGIT_CEILING_DIRECTORIES, and makesBun.spawnandBun.spawnSyncpass the new environment to children. It does nothing whenTMPDIRis already inside that folder.@venizia/dev-configs/testing/tmpdir-preloadcalls it. Pass it as--preload @venizia/dev-configs/testing/tmpdir-preloadin thetestscript of each package, and a barebun testkeeps its temp folders in the repository. Bun reads only thebunfig.tomlof the folder it runs in, so[test] preload = ["@venizia/dev-configs/testing/tmpdir-preload"]in the repository root applies when the tests run from the root (bun test <package>), not tobun testrun inside a workspace package; abunfig.tomlwith that line in each package is an alternative to the flag. From 0.4.5 theignisapp and lib presets pass the flag in theirtestscript.
Who is affected
Nobody has to change anything. A repository with its own copy of the helper can delete it and import the export.