-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Implement expect.extend()
#3621
Comments
I can try working on it! UPD: after working on expect.extend, I realized that it was too hard to me. sorry for the time waste, but I just can't. |
fwiw, this is quite important if you're adopting bun (as we would like to do) with a significant base of existing tests that use the react testing library |
It's all good, the Bun team is going to take this one. |
still! |
With support to extensions with |
Not a perfect fix/workaround by any means, but for those looking for something before official support is added: You can always use the standard expect assertions to use your matchers, Here's an example using @testing-library/jest-dom/matchers:
VS
|
Implemented by @otgerrogla in #7319 This will ship with Bun v1.0.15, which will either release later tonight or tomorrow. To upgrade to the canary build:
|
https://jestjs.io/docs/expect#expectextendmatchers
The text was updated successfully, but these errors were encountered: