diff --git a/src/renderer/src/components/diff-comments/diff-comment-scroll-command.test.tsx b/src/renderer/src/components/diff-comments/diff-comment-scroll-command.test.tsx index a7e09e00b3d..ec4d5253ac1 100644 --- a/src/renderer/src/components/diff-comments/diff-comment-scroll-command.test.tsx +++ b/src/renderer/src/components/diff-comments/diff-comment-scroll-command.test.tsx @@ -160,14 +160,9 @@ it('keeps note navigation through an overlay-only rebuild and releases actual zo const fixture = createScrollCommandFixture() let surface: ReturnType | null = fixture.bindEditor() const consumed = vi.fn(consumeDiffCommentScrollCommand) - const hook = renderHook( - ({ - current, - label - }: { - current: ReturnType | null - label: string - }) => fixture.useDecoratorSurface(current, label, consumed), + type Props = { current: ReturnType | null; label: string } + const hook = renderHook, Props>( + ({ current, label }) => fixture.useDecoratorSurface(current, label, consumed), { initialProps: { current: surface, label: 'Add note' } } ) const mountCard = async (): Promise => {