From 24e1b67027c545176fed8d8b5f8b726d45245181 Mon Sep 17 00:00:00 2001 From: Jen Huang Date: Thu, 5 Sep 2024 23:42:47 -0700 Subject: [PATCH] [UII] Fix `unifiedSearch` mock in `SearchBar` jest test (#192211) ## Summary Resolves #181510. Fixes missing method in the mocked `unifiedSearch` dependency that was causing flaky test failures. --- .../public/applications/fleet/components/search_bar.test.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx b/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx index d426cd754b619..8edb28f341230 100644 --- a/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx +++ b/x-pack/plugins/fleet/public/applications/fleet/components/search_bar.test.tsx @@ -114,6 +114,7 @@ jest.mock('../hooks', () => { }, }, ]), + hasQuerySuggestions: jest.fn().mockReturnValue(true), }, ui: { IndexPatternSelect: jest.fn(),