-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Can only call expect.extend(..) once as it overwrites the proxy's custom extend #72
Comments
Actually expect is not iterable but this would work:
I used patch packages locally but will open a MR here hopefully it will be merged 😊 |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug
package
version: v1.1.3node
version: 14.21.3npm
(oryarn
) version: 6.14.18jest
version: 26.6.2Relevant code or config
What happened (please provide anything you think will help):
Thanks for the library!
The problem is at https://github.com/mattphillips/jest-expect-message/blob/main/src/withMessage.js#L92.
expectProxy = Object.assign(expectProxy, expect);
overwritesexpectProxy.extend
withexpect.extend
.It could be fixed by changing the line to:
The text was updated successfully, but these errors were encountered: