Daniel Afonso
Senior Developer Advocate @ PagerDuty
|danieljcafonsoReal-World React: From Unit to E2Es — A Testing Guide to Sleeping Better at Night
We all want to sleep well at night and be fully confident in the code we built. One thing that can contribute to increasing your number of hours slept is testing. This workshop will focus specifically on testing practices and patterns. In this session, we will go over the full testing spectrum from unit to e2e by understanding the tools for each specific case and how to use them. We will review some production stories and popular use cases and, by the end, learn how to build a testing suite to which even your product owners can contribute.
Here are some of the tools you can expect to learn and use at this workshop:
React Testing Library: Let’s deep dive into how the library that made testing fun again works and how we can leverage it for writing unit and integrating tests.
Mock Service Worker: Mocking is an essential part of testing, so let’s learn about one of the de facto libraries in the industry and use it to make mocking easier and faster.
Vitest: we will learn why it is called the Next-generation testing framework and how we used it to double the speed at which our tests ran.
Playwright: E2Es are an essential part of the testing pyramid. We will learn how Playwright works and enables us to write resilient tests. We will also learn about BDD and how to turn our user stories into automated tests.
By the end of this workshop, you should have a complete overview of the testing practices applied in production environments worldwide and be ready to take this knowledge with you and use it everywhere.
Bio
Daniel Afonso is a Senior Developer Advocate at PagerDuty, SolidJS DX team member, Instructor at Egghead.io, and Author of State Management with React Query. Daniel has a full-stack background, having worked with different languages and frameworks on various projects from IoT to Fraud Detection. He is passionate about learning and teaching and has spoken at multiple conferences around the world about topics he loves. In his free time, when he's not learning new technologies or writing about them, he's probably reading comics or watching superhero movies and shows.
CityJS London 2025
23-25 April 2025
One day Conference and 2 Days of Warm up events