medium10 pts · first answer countsvitestunit-testing
toBe fails on equal objects
Why does this test fail even though both objects look the same?
expect(getUser()).toBe({ id: 1, name: 'Ana' })Discussion 0
Join free to post in the discussion.
Why does this test fail even though both objects look the same?
expect(getUser()).toBe({ id: 1, name: 'Ana' })Join free to post in the discussion.