From 207c23e2dae52afabd330247cfa8953224fdc021 Mon Sep 17 00:00:00 2001 From: Ignacio Rivas Date: Wed, 26 Apr 2023 12:12:24 +0200 Subject: [PATCH] [Index Management] Fix duped mock (#155844) --- .../component_template_create.test.tsx | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/x-pack/plugins/index_management/public/application/components/component_templates/__jest__/client_integration/component_template_create.test.tsx b/x-pack/plugins/index_management/public/application/components/component_templates/__jest__/client_integration/component_template_create.test.tsx index 2ccff58b247bf..8309db0699fc6 100644 --- a/x-pack/plugins/index_management/public/application/components/component_templates/__jest__/client_integration/component_template_create.test.tsx +++ b/x-pack/plugins/index_management/public/application/components/component_templates/__jest__/client_integration/component_template_create.test.tsx @@ -49,23 +49,6 @@ jest.mock('@elastic/eui', () => { }; }); -jest.mock('@kbn/kibana-react-plugin/public', () => { - const original = jest.requireActual('@kbn/kibana-react-plugin/public'); - return { - ...original, - // Mocking CodeEditor, which uses React Monaco under the hood - CodeEditor: (props: any) => ( - { - props.onChange(e.jsonContent); - }} - /> - ), - }; -}); - describe('', () => { let testBed: ComponentTemplateCreateTestBed;