-
Notifications
You must be signed in to change notification settings - Fork 410
Update README.md #129
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
Update README.md #129
Conversation
Update installation instruction for Typescript
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. Indeed, there are things to be improved about this TypeScript aspect in the README. However, I'm not entirely sure this replacement is accurate with respect to the intentions of the text you're replacing.
The text being replaced was meant to convey the fact that picking and choosing to import just some of the custom matchers, and extent jest just with the ones you want, and not all, this won't make TypeScript happy. And using a setup file in TS as you mention won't fix that either.
Using a TS setup file will fix importing jest-dom in the usual manner. So I think the text you have included here, rather than replacing this part of the README, should be inserted, without replacing anything, before the paragraph in the README a few lines above this part, the one that starts with the sentence "Alternatively, you can selectively import only..."
Can you comment on these concerns of mine and clarify if I'm misreading something here?
(Also, as a side note, this PR is related to #123 so I'll mention that here to create the cross reference to that issue, which, when solved, may even change this update).
Hey @gnapse, I think you're right. I misread that. I'll put back that paragraph. |
Co-Authored-By: Ernesto García <gnapse@gmail.com>
I've updated per your comment and suggestion @gnapse and thanks! |
🎉 This PR is included in version 4.1.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Update installation instruction for Typescript
What:
Why:
How:
Checklist: