diff --git a/x-pack/plugins/global_search_bar/jest.config.js b/x-pack/plugins/global_search_bar/jest.config.js index 26a6934226ec..73cf5402a83a 100644 --- a/x-pack/plugins/global_search_bar/jest.config.js +++ b/x-pack/plugins/global_search_bar/jest.config.js @@ -9,7 +9,4 @@ module.exports = { preset: '@kbn/test', rootDir: '../../..', roots: ['/x-pack/plugins/global_search_bar'], - - // TODO: migrate to "jest-environment-jsdom" https://github.com/elastic/kibana/issues/95200 - testEnvironment: 'jest-environment-jsdom-thirteen', }; diff --git a/x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx b/x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx index ec8225a34ca2..94855ab0aa4a 100644 --- a/x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx +++ b/x-pack/plugins/global_search_bar/public/components/search_bar.test.tsx @@ -120,7 +120,8 @@ describe('SearchBar', () => { basePathUrl={basePathUrl} darkMode={darkMode} trackUiMetric={jest.fn()} - /> + />, + { attachTo: document.body } ); const searchEvent = new KeyboardEvent('keydown', {