From 0b5a0d0f66bad009d94737008dd63a8f2632b276 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Tue, 25 Mar 2025 11:14:54 +0100 Subject: [PATCH] Frontend: Fix failing test (#102765) test(paneloptionspane): fix broken import path --- .betterer.results | 5 ++++- .../dashboard-scene/panel-edit/PanelOptionsPane.test.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.betterer.results b/.betterer.results index be6ec2229c5..599827d5204 100644 --- a/.betterer.results +++ b/.betterer.results @@ -2726,6 +2726,9 @@ exports[`better eslint`] = { [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "2"], [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "3"] ], + "public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.test.tsx:5381": [ + [0, 0, 0, "Unexpected any. Specify a different type.", "0"] + ], "public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx:5381": [ [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"], [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "1"], @@ -4795,7 +4798,7 @@ exports[`better eslint`] = { [0, 0, 0, "No untranslated strings. Wrap text with ", "3"], [0, 0, 0, "No untranslated strings. Wrap text with ", "4"], [0, 0, 0, "No untranslated strings. Wrap text with ", "5"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "6"] + [0, 0, 0, "Unexpected any. Specify a different type.", "6"] ], "public/app/features/provisioning/Repository/CheckRepository.tsx:5381": [ [0, 0, 0, "No untranslated strings. Wrap text with ", "0"] diff --git a/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.test.tsx b/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.test.tsx index b7c7d4f4797..9af129511f3 100644 --- a/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.test.tsx +++ b/public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.test.tsx @@ -1,5 +1,5 @@ import { PanelPlugin } from '@grafana/data'; -import { getPanelPlugin } from '@grafana/data/test/__mocks__/pluginMocks'; +import { getPanelPlugin } from '@grafana/data/test'; import { OptionFilter } from 'app/features/dashboard/components/PanelEditor/OptionsPaneOptions'; import { getDashboardSrv } from 'app/features/dashboard/services/DashboardSrv';