8 Testing React applications

This chapter covers

  • How to test components that interact with each other
  • Snapshot testing
  • Testing component’s styles
  • Stories and component-level acceptance testing

After finding their way around a professional kitchen and learning a trick or two with the pastry bag, at some point, a pâtissier must crack a few eggs, prepare a bit of dough, and do some real baking.

In this chapter, we’ll take a similar approach to testing React applications. Now that you’ve learned your way around the React testing ecosystem and understood its tools’ roles, we’ll dig deeper into how to write effective, robust, and maintainable tests for your React applications.

To learn how to write these kinds of tests, you’ll extend the application ...

Get Testing JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.