diff --git a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx index b7036246b5..46ed13690f 100644 --- a/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx +++ b/pmm-app/src/pmm-qan/panel/components/Details/Plan/Plan.test.tsx @@ -6,6 +6,14 @@ jest.mock('shared/components/helpers/notification-manager'); jest.mock('./Plan.hooks'); describe('Plan::', () => { + beforeEach(() => { + console.error = jest.fn(); + // TODO: Grafana Tooltip component uses a react 18 hook - useId + // due to enzyme we are currently stuck at react 17, mocking for now + // @ts-ignore + React.useId = () => ''; + }); + it('renders plan query and tooltip', () => { const { container } = render();