My name is Kent C. Dodds and I'm a Remix Co-Founder, JavaScript engineer, and teacher. I'm also active in the open source community. I like my family, JavaScript, and React.
This is great! One tip: Try to avoid data-testid and *ByTestId queries. Sometimes you can't really avoid it very well (especially for the checked-items<p> tag), but often you can: testing-library.com/docs/guide-whi...
For example, instead of getByTestId('items-list') you could do: getByRole('list') and get rid of the data-testid :)
This is great! One tip: Try to avoid
data-testid
and*ByTestId
queries. Sometimes you can't really avoid it very well (especially for thechecked-items
<p>
tag), but often you can: testing-library.com/docs/guide-whi...For example, instead of
getByTestId('items-list')
you could do:getByRole('list')
and get rid of thedata-testid
:)Thanks for writing this!
Thank you! I shall update that in the post.