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

ts-migration/no-try-expect #344

Merged
merged 2 commits into from Jul 23, 2019
Merged

ts-migration/no-try-expect #344

merged 2 commits into from Jul 23, 2019

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Jul 23, 2019

I had to alter the tests from using catch w/o a parameter.

For some reason it would cause a parsing error - I don't know if that's a TS or ESlint support problem, but since it's not critical to the rule (it just changes the CatchClause#param property from Identifier to null), I've omitted it for now.

@SimenB
Copy link
Member

SimenB commented Jul 23, 2019

Weird you had to change the parser.

Empty catch should be allowed, I think (https://github.com/tc39/proposal-optional-catch-binding)

EDIT: typescript-eslint/typescript-eslint#746

src/rules/no-try-expect.ts Outdated Show resolved Hide resolved
@G-Rath
Copy link
Collaborator Author

G-Rath commented Jul 23, 2019

@SimenB Yeah, I figured it was b/c of something like that, but wanted to keep rolling through the bigger changes first :P

Thanks for handling this one for me!

@SimenB SimenB merged commit 501de4a into jest-community:master Jul 23, 2019
@SimenB
Copy link
Member

SimenB commented Jul 25, 2019

🎉 This PR is included in version 22.13.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@G-Rath G-Rath deleted the ts-migration/no-try-expect branch July 27, 2019 12:52
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

2 participants