-
Notifications
You must be signed in to change notification settings - Fork 407
Updated jest Matchers namespace declaration #161
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
Updated jest Matchers namespace declaration #161
Conversation
This seems to be at odds with #150. The change you're trying to introduce here is the exact opposite of that other PR. Can you read over that PR's description and the reasoning of why this was done? Because that one seem to suggest that what you want to introduce here is what's really out of date. Maybe we can involve the author of that PR in the discussion (@bopfer) as well as @jgoz who approved it. |
#150 was done to sync up with |
Yeah, #150 introduced an implicit dependency upgrade to the latest Jest typings. I was worried this would happen (user upgrades to latest jest-dom, but not jest typings), but we don’t currently have a way to communicate this implicit dependency. Maybe we could add |
Not sure what to do about this then, since either state of affairs affect some people.
Would that definitely solve the issue? Are there any downsides? |
I think it's simpler (for us) to always stay in sync with the latest Jest typings. My assumption is that people generally upgrade all jest-related packages together, including
I wouldn't say it will "definitely solve" the issue since people can ignore peer dependency warnings, but it would at least provide some compatibility guidance for those using the typings. |
Nice, seems reasonable. @shadrech can you change this PR following what's discussed above? |
Yh sure. Give me till the weekend and I'll work on it |
420bf58
to
675e895
Compare
Done @gnapse . Sorry for forced push. I had merged my local master branch which had some other changes I had made. Let me know if my changes suffice 👍 |
@jgoz Kindly review. Thanks |
@jgoz how does this fare under the light of our recent work to fix #123? (context: #175, #182 and DefinitelyTyped/DefinitelyTyped#37792). |
This can be closed. Once the types are published to DT, they will have |
What:
Jest namespace extension was out of date. The Matchers interface only accepts one generics variable
Why:
Though its stated as being deprecated I find once this is updated and I import as mentioned in docs typings work as expected