Skip to content

Commit

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

Resolves elastic#181510. Fixes missing method in the mocked `unifiedSearch`
dependency that was causing flaky test failures.

(cherry picked from commit 24e1b67)
  • Loading branch information
jen-huang committed Sep 6, 2024
1 parent 4dfe5cb commit a4b5bce
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 a4b5bce

Please sign in to comment.