Skip to content
RED SAGSkills
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' })
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions