1 person reported

All time, since Sep 12.

toEqual passes for different types

“Bun.deepEquals(Array, Object) returns true.”

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/4505/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

toEqual passes for values of different types or classes. toEqual() and Bun.deepEquals return true for native constructors, mock functions, or objects of classes specialObjectsDequal has no case for.

Is this your bug?

File my report
Where
bun:test
Versions
1.4.3
How bad
Breaks a normal workflow.

Not quite your bug?

  1. Failing matcher passes silently3 people

Original reports2, newest first

  1. bun:test: toEqual() passes for two different functions that are not plain JS functions, for example expect(Array).toEqual(Object)#44381
  2. bun:test: toEqual() passes for objects of different classes, for example expect(Promise.resolve()).toEqual({})#42539

Do you work on Bun?

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