Skip to main content

Quiz: Jest Fundamentals

Test what you learned in this lesson before moving on.

Lesson Quiz

Pass with 80% to complete this lesson.

1. When should you use `toEqual` instead of `toBe` in Jest assertions?

2. What is the difference between `beforeAll` and `beforeEach` hooks in Jest?

3. What advantage does `test.each` provide over writing individual test cases?