expect
expect copied to clipboard
Expected {} to equal {}
> expect(Object.create(null)).toEqual({})
Error: Expected {} to equal {}
They are different, because of prototype, but the output is weird.
It might be worth special-casing objects whose [[Prototype]] isn't Object.prototype in the debug output.
If that's managed by object-inspect, please file an issue there for it (I don't recall if this project uses it or not)