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

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.

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 5.  6

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 5.  6
some-alt