Skip to content
RED SAG Skills
mediumStudy question · answer published in Automation Testing interview questions, so no pointsvitestunit-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