-
Notifications
You must be signed in to change notification settings - Fork 153
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
fix(TS): Cypress commands return jQuery objects (#58) #62
fix(TS): Cypress commands return jQuery objects (#58) #62
Conversation
@NoriSte if I use @ts-ignore on the example used in #58, the test passes. If I inspect the returned value, it is a jQuery element. |
The missing typings were an oversight, I thought they'd already been typed properly. |
@kentcdodds I've reviewed the PR and accepted it. Are we good to merge? |
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.
Looks great! Thanks!
@all-contributes please add @NoriSte for code |
@all-contributors please add @NoriSte for code and tests |
I've put up a pull request to add @NoriSte! 🎉 |
Thank you for all guys ❤️ |
You made me thought I was missing a key point 😁 |
🎉 This PR is included in version 4.0.5 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Some functions have not the right typings. I started from the
getByLabelText
function to discover that the bug affects all the following functions@aaronmcadam (partially) fixed it in #56 but the functions above were left untouched. @aaronmcadam I'm not sure why you have not fixed the above functions too.
Why:
Because you can not consume the
getByLabelText
etc. functions with the right/expected flowHow:
To be sure that I'm making the correct thing I proceeded this way:
to the existing tests.
So, I have updated the typings file and I've added one more TS test.
Checklist:
Fixes #58
Thank you for the amazing library ❤️