Closed
Description
dom-testing-library
version: 3.11.2
Relevant code or config:
What you did:
Used queryByTestId
in typescript
What happened:
VSCode gives error that more arguments are expected
Problem description:
Looks like queryByTestId
uses the queryByAttribute
type: https://github.com/kentcdodds/dom-testing-library/blob/master/typings/queries.d.ts#L52, even thought the attribute
argument is automatically bound: https://github.com/kentcdodds/dom-testing-library/blob/master/src/queries.js#L153.
Suggested solution:
Add a new type or pick the keys off the queryByAttribute
type.