From bbef95ca5d5719f1f5bc23004e26c330e4d6350b Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Wed, 11 Nov 2026 08:08:01 -0800 Subject: [PATCH] test(diffs): type the nullable decorator surface explicitly --- .../diff-comment-scroll-command.test.tsx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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 => {