Use Jest's expect instead of Chai
It's totally fine to mix Chai with Jest but it seems unnecessary when Jest comes with a perfectly good implementation of expect
. The Jest one also has some extra assertions that work with Jest mocks.
It's totally fine to mix Chai with Jest but it seems unnecessary when Jest comes with a perfectly good implementation of expect
. The Jest one also has some extra assertions that work with Jest mocks.