From 920c58ea6fbadc64caa6885aebfd53ab4f1e97da Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Thu, 26 Sep 2024 09:04:39 +0200 Subject: [PATCH] Prove that coverage does not work --- src/frontend/src/components/plugins/PluginUIFeature.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/src/components/plugins/PluginUIFeature.tsx b/src/frontend/src/components/plugins/PluginUIFeature.tsx index 4ef1fb71ab..4632f9b28c 100644 --- a/src/frontend/src/components/plugins/PluginUIFeature.tsx +++ b/src/frontend/src/components/plugins/PluginUIFeature.tsx @@ -33,6 +33,8 @@ export const getPluginTemplateEditor = ( const setCodeRef = useRef<(code: string) => void>(); const getCodeRef = useRef<() => string>(); + throw new Error('I was definitely being called!'); + useImperativeHandle(ref, () => ({ setCode: (code) => { // if the editor is not yet initialized, store the initial code in a ref to set it later