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

Kursinhalt

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.

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 5. Kapitel 6
We're sorry to hear that something went wrong. What happened?
some-alt