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

Conteúdo do Curso

Expert React

Expert React

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

bookChallenge: 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.

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 5. Capítulo 6
some-alt