We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fd61cb commit e01b887Copy full SHA for e01b887
1 file changed
tests/unit/ImageSVGCachePolicyTest.tsx
@@ -35,7 +35,8 @@ jest.mock('@libs/getImageRecyclingKey', () =>
35
const MOCK_STATIC_SOURCE = 42;
36
37
function getFirstCallProps(): Record<string, unknown> {
38
- return mockImageComponent.mock.calls.at(0)?.at(0) as Record<string, unknown>;
+ const firstCall = mockImageComponent.mock.calls.at(0) as unknown[] | undefined;
39
+ return firstCall?.at(0) as Record<string, unknown>;
40
}
41
42
describe('ImageSVG cache policy', () => {
0 commit comments