From 7fb7793f8151576fd8917c8048349b2421e88d91 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 8 Aug 2024 20:37:17 +0000 Subject: [PATCH] mock monaco import Signed-off-by: Eric --- test/setup.jest.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/setup.jest.ts b/test/setup.jest.ts index 432a87c7..5a9516e4 100644 --- a/test/setup.jest.ts +++ b/test/setup.jest.ts @@ -25,6 +25,9 @@ jest.mock('@elastic/eui/lib/services/accessibility/html_id_generator', () => ({ }, })); +// address issue: https://github.com/opensearch-project/anomaly-detection-dashboards-plugin/issues/832 +jest.mock('@osd/monaco', () => ({})); + //for mocking window.scroll(0,0) const noop = () => {}; Object.defineProperty(window, 'scroll', { value: noop, writable: true });