DEV Community

Discussion on: Testing JavaScript with Jest - Unit Testing

Collapse
 
thejaredwilcurt profile image
The Jared Wilcurt

You should update the code examples to avoid .toBe and use .toEqual instead.

Collapse
 
rafavls profile image
Rafael

Just read your post on it, and you're right.

I'll see if I have the time to update this later, but even if I don't, I'll use toEqual in the future.