Capgemini Engineering interview question

What are some best practices for testing React components?