Which Jest matchers match .equal and .eql from Mocha/Chai?

Viewed 14

I'm migrating Mocha/Chai tests to Jest and see that there are 2 matchers in Mocha/Chai used.

  1. equal: Asserts that the target is strictly (===) equal to the given value.
  2. eql: Asserts that the target is deeply equal to value. ( and this is equivalent of using equal with deep mutator in matcher => .to.deep.equal )

Which Jest matchers should I use instead of these 2?

0 Answers
Related