// Bun test preload: close PGlite WASM worker after each file to prevent exit code 100 (leaked handles). import { afterAll } from "bun:test"; import { cachedClient } from "./helpers/db.ts"; afterAll(async () => { if (cachedClient) { await cachedClient.close(); } });