Closed mdodgelooker closed 3 years ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
π’ | Statements | 94.74% | 7332/7739 |
π‘ | Branches | 87.05% | 4666/5360 |
π’ | Functions | 93.49% | 2112/2259 |
π’ | Lines | 95.31% | 7090/7439 |
Status of coverage: π’ - ok, π‘ - slightly more than threshold, π΄ - under the threshold
Report generated by π§ͺjest coverage report action from 9776ac334b4377ae0b342f18c4ec259740b1b4c8
Oops sorry @lukelooker I thought I was sneaking that 2nd commit in before you saw this.
requestAnimationFrame
mock in jest setup with that in the core product.paddingSpy
inuseScrollLock.spec.tsx
β not sure why it was working before but the core product wasn't having it.I removed all existing instances of
jest.spyOn(window, 'requestAnimationFrame')
, since they are now redundant, except for two inCombobox.spec
andSelect.spec
. Those will take some time to unwind so I want to save them for a follow-up (I created a ticket). In most cases an additionalrunTimers()
call was necessary since therequestAnimationFrame
mock uses asetTimeout
.