mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 14:51:52 +00:00
- Use Bun's async toThrow pattern (await expect(async () => { ... }))
instead of Jest-style .rejects.toThrow for write() rejection tests
- Replace try/finally + manual server.stop() with `using` for
deterministic resource cleanup and remove Bun.sleep(200) delay
- Replace secret-like credential strings with clearly fake placeholders
(FAKE_ACCESS_KEY / FAKE_SECRET) to avoid gitleaks triggers
Co-Authored-By: Claude <noreply@anthropic.com>