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

Switch toThrowError to toThrow for Jest 30 #416

Merged
merged 1 commit into from
Feb 25, 2024
Merged

Switch toThrowError to toThrow for Jest 30 #416

merged 1 commit into from
Feb 25, 2024

Conversation

karlhorky
Copy link
Contributor

@karlhorky karlhorky commented Feb 20, 2024

Aliases were dropped in this PR:

This is not a breaking change because the .toThrowError() matcher is just an alias of .toThrow() - so it should not fail with existing Jest versions:

https://jestjs.io/docs/expect#tothrowerror

@karlhorky
Copy link
Contributor Author

@ikatyang any feedback on this one?

@ikatyang ikatyang merged commit 9fec19f into ikatyang:master Feb 25, 2024
2 checks passed
@ikatyang
Copy link
Owner

Thanks!

@karlhorky
Copy link
Contributor Author

karlhorky commented Feb 25, 2024

Glad to help, thanks for the review, merge and publish as dts-jest@26.0.2 :)

@karlhorky karlhorky deleted the patch-1 branch February 25, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants