Question · JavaScript and React course · Module 13: Testing React
RTL testing philosophy
What is the main philosophy of React Testing Library?
Answer options
- Test only the component's public API and ignore the rendering
- Test the component's internal state and lifecycle
- Test every line of code to reach 100% coverage
- Test from the user's perspective - what they see and interact with
You can check the correct answer by solving this task in the CodeWorlds game.