Skip to content

Commit

Permalink
[UII] Fix unifiedSearch mock in SearchBar jest test (#192211)
Browse files Browse the repository at this point in the history
## Summary

Resolves #181510. Fixes missing method in the mocked `unifiedSearch`
dependency that was causing flaky test failures.
  • Loading branch information
jen-huang authored Sep 6, 2024
1 parent 33c181e commit 24e1b67
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ jest.mock('../hooks', () => {
},
},
]),
hasQuerySuggestions: jest.fn().mockReturnValue(true),
},
ui: {
IndexPatternSelect: jest.fn(),
Expand Down

0 comments on commit 24e1b67

Please sign in to comment.