draft-js-utils
draft-js-utils copied to clipboard
Update expect
This makes writing and debugging tests so much nicer as the error messages are a million times better, especially for nested objects.
Oops, it turns out that expect v1.x was a totally different package back in 2016. Then this package name got donated to Jest which has taken over it since v21.
According to this page, you can use jest-codemods to automatically migrate the old tests using [email protected] to the new jest version of expect.
If you want to do that, I'll be open to the change.
In that case, it might be worth just upgrading jest
and using the built-in expect
instead of only upgrading this dep?!
Right, but that would effectively be the same thing (expect
that you linked to in package.json
is exactly the one that's packaged within Jest). So we'd still need to run the codemod. Which I'm fine with.