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 configure Jest for TypeScript?

In this round
  1. How do you configure Jest for TypeScript?
  2. How do you run setup code before each test in a `describe` block?
  3. What is a "snapshot" test?
  4. How do you mock a whole module?
  5. How do you group related tests?
  6. How do you assert a string matches a regex?
  7. What does `jest.useFakeTimers()` do?
  8. How do you assert an array contains a specific item?
  9. Which function asserts equality?
  10. How do you measure code coverage?
  11. How do you skip a test?
  12. How do you assert a function throws?
Gaps to close?
Read the curated Jest notes — core concepts, patterns, interview prep.
Jest notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid