Skip to content

Commit 34b654c

Browse files
committed
Add explicit undefined typing to consoleWarnSpy
1 parent 77782ef commit 34b654c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal/stable-callback/__tests__/use-stable-event-handler.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Component = React.forwardRef(({ onChange }: Props, ref: React.Ref<Ref>) =>
3333
return null;
3434
});
3535

36-
let consoleWarnSpy: jest.SpyInstance;
36+
let consoleWarnSpy: jest.SpyInstance | undefined;
3737
afterEach(() => {
3838
consoleWarnSpy?.mockRestore();
3939
});

0 commit comments

Comments
 (0)