Changelog

oven-sh/bun · · 1 commit

Stabilize flaky next-pages HMR tests

A single test-focused fix hardens Puppeteer launch, reload timing, and post-HMR assertions to avoid CI hangs and stale handles.

Fix race conditions and launch flakiness in next-pages HMR test (robobun9daa1f7)

This test update closes several CI-only failure modes: it attaches console listeners before reloads, waits for the page state and styles to settle before asserting, and re-queries DOM handles after HMR so React rerenders don't leave stale references. It also makes Puppeteer launch more resilient on macOS by adjusting launch flags, stripping quarantine on downloaded Chrome, and retrying browser startup up to three times; the longer subprocess timeout helps slow runners finish reliably.

Other misc changes

  • None