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 assert a function was called exactly N times?

In this round
  1. How do you assert a function was called exactly N times?
  2. Which command runs Jest?
  3. How do you test asynchronous code that returns a Promise?
  4. What does `jest.fn()` create?
  5. What does `jest --watch` do?
  6. How do you assert a string matches a regex?
  7. How do you run only one test in a file?
  8. How do you assert a function throws?
  9. What is Jest?
  10. What is a "snapshot" test?
  11. How do you run setup code before each test in a `describe` block?
  12. How do you measure code coverage?
Gaps to close?
Read the curated Jest notes — core concepts, patterns, interview prep.
Jest notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web