Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Third Test Case | Jest
Expert React
course content

Kursinnehåll

Expert React

Expert React

1. React Key Concepts
2. React Router
3. Redux Toolkit
4. Formik
5. Jest
6. Next Steps

book
Challenge: Third Test Case

Task

Implement the third test case for the Counter app, focusing on the decrement button functionality. The goal is to ensure that the counter value decreases correctly when clicking the decrement button. Steps:

  1. Render the App component
  2. Find the decrement button.
  3. Find the resulting text element.
  4. Simulate a click on the decrement button.
  5. Verify if the text shows the correct updated value.
  6. Repeat steps 4 and 5 to ensure the functionality is correct.

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 5. Kapitel 6
Vi beklagar att något gick fel. Vad hände?
some-alt