Skip to content
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 type for Matchers to match @types/jest #150

Merged
merged 2 commits into from
Oct 31, 2019
Merged

Update type for Matchers to match @types/jest #150

merged 2 commits into from
Oct 31, 2019

Conversation

bopfer
Copy link
Contributor

@bopfer bopfer commented Oct 26, 2019

What:

@types/jest recently had some updates to correct the type for Matchers. This update is a breaking change for any TypeScript project that uses expect.extend.

See: DefinitelyTyped/DefinitelyTyped#39243

Why:

@testing-library/jest-dom defines the Matchers type in extend-expect.d.ts.

How:

The change was simply to update the type to match @types/jest.

Checklist:

  • Documentation - N/A
  • Tests - N/A
  • Updated Type Definitions
  • Ready to be merged

Copy link
Collaborator

@jgoz jgoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thank you

I guess this might lead to some confusion if people upgrade jest-dom without also upgrading @types/jest, but that will be an easy fix.

@jgoz jgoz mentioned this pull request Oct 28, 2019
2 tasks
@jgoz
Copy link
Collaborator

jgoz commented Oct 30, 2019

@gnapse Any thoughts on this? Seems like it's blocking a lot of people.

@gnapse
Copy link
Member

gnapse commented Oct 31, 2019

I'll be merging it now as soon as the CI build passes. One question: does this close #152? That issue description is not clear enough, but I see that it was attempted to be fixed in #153 and then that one got closed with a mention that it was a duplicate of this. So I just want to make sure we can close #152 after we merge this?

@gnapse gnapse merged commit f881e68 into testing-library:master Oct 31, 2019
@gnapse
Copy link
Member

gnapse commented Oct 31, 2019

🎉 This PR is included in version 4.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants