React

Write Automated Tests you own this product

This project is part of the liveProject series A Directory with React
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

placing your order...

Don't refresh or navigate away from the page.
liveProject This project is part of the liveProject series A Directory with React liveProjects give you the opportunity to learn new skills by completing real-world challenges in your local development environment. Solve practical problems, write working code, and analyze real data—with liveProject, you learn by doing. These self-paced projects also come with full liveBook access to select books for 90 days plus permanent access to other select Manning products. $19.99 $29.99 you save $10 (33%)
Write Automated Tests (liveProject) added to cart
continue shopping
adding to cart

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 eBook every time you renew
  • choose twelve free eBooks per year
  • exclusive 50% discount on all purchases
  • Write Automated Tests eBook for free
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.

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

book resources

When you start your liveProject, you get full access to the following books for 90 days.

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

you will learn

In this liveProject, you’ll learn to use React tools to write and automate tests that ensure application components function as expected.

  • Use Jest to collect and run tests
  • Render React components for tests and find elements within the rendered components using React Testing Library
  • Provide mocked responses from the server for tests using Mock Service Worker
  • Simulate and test user interactions with components using user-event

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.
RECENTLY VIEWED