call(back)

Have You Used Jest?

Have you used Jest? What do you test with it?

Answer out loud in under a minute, from your own work first.

Hints

Hint 1

Answer from your own work: which kinds of code, and one technique such as fake timers.

Solution

Show the approach

Answer

Be ready to name what you test with it: pure functions, component behavior through Testing Library, and timers with fake timers, which is how you would test debounce without waiting.

Asked at