All quizzes
Free quiz · 50 questions in the bank

Jest quiz

Test your Jest knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

How do you write a parameterized test for many inputs?

In this round
  1. How do you write a parameterized test for many inputs?
  2. What is Jest?
  3. What does `jest --watch` do?
  4. How do you test asynchronous code that returns a Promise?
  5. How do you declare a test case?
  6. How do you assert a function throws?
  7. How do you spy on an existing method without replacing it?
  8. How do you assert an array contains a specific item?
  9. How do you group related tests?
  10. How do you tell Jest to ignore certain folders during test discovery?
  11. How do you run only one test in a file?
  12. Which function asserts equality?
Gaps to close?
Read the curated Jest notes — core concepts, patterns, interview prep.
Jest notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid