You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 option
The text was updated successfully, but these errors were encountered:
This will still install the old __dom typings within @types/testing-library-react. I've tried to install the dom typings separately, I get the lastest version but no luck, the react typings will still load the older types.
@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: