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
queryByPlaceholderText,
getAllByPlaceholderText,
getByPlaceholderText,
findAllByPlaceholderText,
findByPlaceholderText,
] = buildQueries(queryAllByPlaceholderText, getMultipleError, getMissingError)
looks like this abstraction is confusing TS, not sure although
I'm using typescript and testing-library, when trying to wait for an HTML Element to be removed, I need to pass hard-coded ```any`` type to the element, otherwise Typescript is gonna validate an invalid argument for the function.
What happened:
Argument of type 'HTMLElement' is not assignable to parameter of type '() => unknown'.
Type 'HTMLElement' provides no match for the signature '(): unknown'.ts(2345)
Reproduction:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
DOM Testing Library
version:node
version:npm
(oryarn
) version:Relevant code or config:
What you did:
I'm using typescript and testing-library, when trying to wait for an HTML Element to be removed, I need to pass hard-coded ```any`` type to the element, otherwise Typescript is gonna validate an invalid argument for the function.
What happened:
Argument of type 'HTMLElement' is not assignable to parameter of type '() => unknown'.
Type 'HTMLElement' provides no match for the signature '(): unknown'.ts(2345)
Reproduction:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: