-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Name property does not exist in ByRoleOptions typing #636
Comments
You need to manually update the typings for The underlying issue is already part of #620 |
Hi, thanks but I don't get why, upgrading does not work:
This will still install the old Do you have a quickfix for this? |
You need to upgrade If that doesn't help remove the lockfile entry for |
Thanks it works after manually removing reference to testing-library__dom v6 and rerunning the yarn upgrade command. |
@testing-library/react
version: 10.0.2Relevant code or config:
Name is documented here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
But absent from the "ByRole" typing.
What you did:
What happened:
Argument of type '{ name: string; }' is not assignable to parameter of type 'ByRoleOptions'.
Object literal may only specify known properties, and 'name' does not exist in type 'ByRoleOptions'.ts(2345)
Reproduction:
Use getByRole in a ts file like in the code provided above.
Suggested solution:
Fix typings of the
ByRole
optionThe text was updated successfully, but these errors were encountered: