From 6d0d9ba68b28b71b0aef5067603a7b79ace7a638 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 27 Jan 2026 15:42:53 +0530 Subject: [PATCH] Fix TypeScript implicit type errors in SearchableDropdown tests (#2355) * Initial plan * Fix TypeScript compilation errors in SearchableDropdown.test.tsx Co-authored-by: nishthaAhujaa <45535788+nishthaAhujaa@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: nishthaAhujaa <45535788+nishthaAhujaa@users.noreply.github.com> --- src/Common/SearchableDropdown.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/SearchableDropdown.test.tsx b/src/Common/SearchableDropdown.test.tsx index 815d1c09e..b0e4e61c7 100644 --- a/src/Common/SearchableDropdown.test.tsx +++ b/src/Common/SearchableDropdown.test.tsx @@ -18,7 +18,7 @@ describe("SearchableDropdown", () => { const defaultProps = { label: "Test Label", items: mockItems, - selectedItem: null, + selectedItem: null as TestItem | null, onSelect: jest.fn(), getKey: (item: TestItem) => item.id, getDisplayText: (item: TestItem) => item.name, @@ -49,7 +49,7 @@ describe("SearchableDropdown", () => { it("should show 'No items found' when items array is empty", () => { const propsWithEmptyItems = { ...defaultProps, - items: [], + items: [] as TestItem[], }; render(); expect(screen.getByText("No Test Labels Found")).toBeInTheDocument();