ByRole Queries in React Native Testing Library

Опубликовано: 05 Октябрь 2024
на канале: CodingItWrong
539
13

Big thanks to my employer, Test Double, for supporting my streaming! Find out more about how we can help you on your next React Native project, or what it'd be like to join our team! https://testdouble.com

In this stream we learned about ByRole Queries in React Native Testing Library: how they work, they features they currently do and don't support, and how recommended they are. We gave them a try in a real project and saw which cases they are a fit for and which they are not.

- How Should I Query? https://callstack.github.io/react-nat...
- Issue on updating the docs: https://github.com/callstack/react-na...
- Common Mistakes with React Testing Library: https://kentcdodds.com/blog/common-mi...
- React Native's accessibilityRole prop: https://reactnative.dev/docs/accessib...