fix globalSearchBar jest env (#95640)
This commit is contained in:
parent
ace1efcd98
commit
683d140229
|
@ -9,7 +9,4 @@ module.exports = {
|
|||
preset: '@kbn/test',
|
||||
rootDir: '../../..',
|
||||
roots: ['<rootDir>/x-pack/plugins/global_search_bar'],
|
||||
|
||||
// TODO: migrate to "jest-environment-jsdom" https://github.com/elastic/kibana/issues/95200
|
||||
testEnvironment: 'jest-environment-jsdom-thirteen',
|
||||
};
|
||||
|
|
|
@ -120,7 +120,8 @@ describe('SearchBar', () => {
|
|||
basePathUrl={basePathUrl}
|
||||
darkMode={darkMode}
|
||||
trackUiMetric={jest.fn()}
|
||||
/>
|
||||
/>,
|
||||
{ attachTo: document.body }
|
||||
);
|
||||
|
||||
const searchEvent = new KeyboardEvent('keydown', {
|
||||
|
|
Loading…
Reference in a new issue