Skip to content

Conversation

@noahbenham
Copy link
Contributor

The autofix for no-alias-methods didn't catch everything it could've in our internal repo. Specifically .resolves & .rejects were missed.

This PR assumes that the full list of methodNames can be prefixed with .resolves and .rejects.

There may be other helpers I've overlooked that could be added here. For now, I erred on the side of caution.

@SimenB
Copy link
Member

SimenB commented Dec 4, 2018

Does this cover not as well?

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

Code in this PR looks great, but I'd like to see a test for expect(a).not.toThrowError() as well

@noahbenham
Copy link
Contributor Author

Added, thanks for the feedback @SimenB.

@SimenB SimenB merged commit ee9578f into jest-community:master Dec 4, 2018
@SimenB
Copy link
Member

SimenB commented Dec 4, 2018

Thank you!

@SimenB
Copy link
Member

SimenB commented Dec 4, 2018

🎉 This PR is included in version 22.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SimenB SimenB added the released label Dec 4, 2018
@noahbenham noahbenham deleted the alias-supports-resolves-rejects branch December 4, 2018 10:07
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.

2 participants