youtube image
From YouTube: Pair Programming - Fix flaky Jest spec (mocking lodash debounce)

Description

Result: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/28807

Some highlights:

8:10 - We update our global afterEach from runAllTimers to runOnlyPendingTimers
11:54 - We talk about Paul's personal preference against mocking
14:50 - Eipi joins and we summarize the problem
25:30 - We mock debounce for the spec
26:15 - Product placement by Ikea
26:35 - Eipi solves the problem