Skip to content

Commit

Permalink
mock monaco import
Browse files Browse the repository at this point in the history
Signed-off-by: Eric <menwe@amazon.com>
  • Loading branch information
mengweieric committed Aug 8, 2024
1 parent d220c73 commit 7fb7793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/setup.jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit 7fb7793

Please sign in to comment.