Write Automated Tests you own this product

prerequisites
React Router basics • React Query basics • asynchronous JavaScript functions using async / await
skills learned
automate tests with Jest, React Testing Library, and Mock Service Worker
Bonnie Schulkin
1 week · 4-6 hours per week · INTERMEDIATE

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Look inside

It’s week number five for you at SongRiver, a music-streaming startup whose success is soaring. You’ve been working on an employee directory that helps users find employee information and send each other digital recognition badges. Your task this week is to create and automate tests to ensure the app works correctly, especially after updates.

Using Jest and the React Testing Library, you’ll write a test for the badge component that checks for the badge name and image. You’ll create and test a custom render method for React Testing Library, a must for preventing errors while rendering components that require React Router. Using mocked data, you’ll test components that fetch data. You’ll also write tests for the “Add Badge” component, using user-events to simulate user interactions with components. When you’re done, you’ll have created an automated test suite that empowers you and your colleagues to update the directory app with confidence.

Some sections may contain information that is now outdated due to the rapid advancements in the technology field, notably the initial libraries, Docker setup, and some documentation links. Regardless, this liveProject remains an invaluable resource for intermediate users.

This project is designed for learning purposes and is not a complete, production-ready application or solution.

project author

Bonnie Schulkin

Bonnie Schulkin is the author of many popular Udemy courses on React topics. Her experience includes various roles at software companies large and small, and she’s been writing code professionally since the 1990s. She’s proud to mentor students at the Hackbright Academy coding boot camp and serves on the board of the Africa Code Academy.

prerequisites

This liveProject is for web developers with intermediate React, React Router, and React Query experience who want to learn automated testing for React apps. To begin these liveProjects you’ll need to be familiar with the following:

TOOLS
  • Intermediate JavaScript
  • Intermediate React
  • Intermediate React Router
  • Intermediate React Query
TECHNIQUES
  • Intermediate automated testing, including using Jest, React Testing Library, Mock Service Worker, and Testing Library

features

Self-paced
You choose the schedule and decide how much time to invest as you build your project.
Project roadmap
Each project is divided into several achievable steps.
Get Help
While within the liveProject platform, get help from other participants and our expert mentors.
Compare with others
For each step, compare your deliverable to the solutions by the author and other participants.
book resources
Get full access to select books for 90 days. Permanent access to excerpts from Manning products are also included, as well as references to other resources.

choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • Write Automated Tests project for free