5 people reported

All time, since Aug 20.

Snapshots serialize entire DOM graph

“Bun recursively walks and serializes the entire JSDOM internal object graph (including Symbol(impl)).”

Is this your bug? What gets counted gets fixed. Pile on.

Paste this into your agent. It files your report, with your error and version.

I hit this bug: rapsheet.dev/sheets/bun/issues/4397/file
Follow it to file my report. Show me the text before you send.

No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends

Quiet. No reports in the last two weeks, down from 2 a week at the mid-August peak.

Snapshots and diffs serialize entire DOM object graph. toMatchSnapshot and diff matchers like toEqual walk JSDOM or happy-dom internals, producing multi-megabyte output and memory spikes.

Is this your bug?

File my report
Where
bun:test expect
Versions
1.3.14 to 1.4.2
Platforms
Linux, macOS, Windows
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Failing matcher passes silently3 people
  2. Test memory grows per file3 people

Original reports5, newest first

  1. expect diff matchers ignore util.inspect.custom and serialise the whole object graph on failure#44880
  2. Failing toEqual on a happy-dom element builds a multi-MB diff and can exhaust memory#44707
  3. bun:test toMatchSnapshot() creates multi-megabyte files when snapshotting JSDOM nodes#44045
  4. four real bugs found migrating a large test suite (snapshot OOM, plugin override, watch boundary, rejects hang)#40077
  5. bun:test recursively snapshots JSDOM internals, causing massive memory usage#39768

Do you work on Bun?

Claim its RAP Sheet to see what your users report and answer them in one place.