Skip to content

Commit 22d1d67

Browse files
committed
fix: resolve TypeScript error for jest.mock.calls access
1 parent 9a8cc73 commit 22d1d67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/CSSMotion.spec.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,8 @@ describe('CSSMotion', () => {
493493
});
494494

495495
it('styleReady returns NONE on first mount when status is STATUS_NONE', () => {
496-
const mockRender = jest.fn(() => null);
496+
const mockRender = jest.fn(() => null) as jest.Mock;
497+
(mockRender as any).mock.calls = [] as any;
497498

498499
render(
499500
<CSSMotion visible motionAppear motionName="test">

0 commit comments

Comments
 (0)