fix: close PGlite handle after tests to resolve exit code 100
All checks were successful
CI / ci (push) Successful in 1m40s
CI / e2e (push) Has been skipped
CI / deploy (push) Successful in 58s

PGlite's WASM worker kept an open async handle, causing Bun to detect
a resource leak and exit with code 100 despite all tests passing.
Adds a preload script that closes the cached client via afterAll.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-19 16:43:11 +02:00
parent 5f63e6f75d
commit 9649ef2514
3 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
[test]
root = "tests/"
timeout = 30_000
preload = ["./tests/setup.ts"]