-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use jest-matchers for assertions instead of expect #468
Conversation
Hey @skovhus, thanks for taking a look at this. Do you have any updates here? I'd like to make this upgrade happen sometime soon. Thanks! :) |
@mjackson would you like to still use a browser for executing these tests? If so then I can wrap this PR up using jest-codemods, so you can use the |
e97509b
to
976469e
Compare
@mjackson I've just reran the codemod on latest master. If you want to keep running the tests in a browser, there are still some issues with the es5 bundle of jest-matchers. Seems to be something related to IE10. Let me know which testing environment you would like, node or browser. : )
|
Thanks, @skovhus. I need to keep using the browser for these tests because part of this library's job is to work around bugs and/or slightly differing behavior in various browser implementations, so the in-browser tests are crucial. I'd also like to make sure the ES5 build of the next version of |
@mjackson I totally agree with the browser support for next version of expect/jest-matchers. 👍🏻 So while working on the codemod, I've also been contributing browser support to Jest:
We are just missing a few things it seems. : ) |
I'll update this once jestjs/jest#4367 has landed. |
@mjackson master has been merged in now that expect@21 has been released. Should be ready for you to merge. : ) |
Thanks @skovhus! I'm taking a look at this now. |
Currently expect@1.x is being integrated into Jest (see more background in jestjs/jest#1679).
In jest-codemods I'm working on a codemod to automate the process of going from mjackson/expect to jest-matchers (if running in a browser) or plain Jest (if running in node). 🤖
I've tested the codemod on this project and everything should still work.
Let me know what you think.
Update
Updated 4th Septhember with Expect@21