16 RUNNING AUTOMATED TESTS IN DOCKER

In this short final chapter, you’ll write a couple of automated tests that verify the state of the Food Finder application. Then you’ll configure a Docker service to continuously run them.

We’ll focus on evaluating the application’s header by using a snapshot test and mocking the user session. We won’t create tests for the other components or our middleware, services, or APIs. However, I encourage you to build these on your own. Try using browser-based end-to-end tests, with a specialized framework such as Cypress or Playwright, to test entire pages. You can find installation instructions and examples ...

Get The Complete Developer 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.