diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 09:10:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-11 09:10:11 +0300 |
commit | 65a1175e466105fca1f40cb5a995fdb100ff334e (patch) | |
tree | 562573b4fc7a0cd748d07d6a1720b4b13d36386a /spec/frontend | |
parent | 3a52deac114dda8a1ee0da597c148b0dfc5dcf35 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend')
-rw-r--r-- | spec/frontend/__mocks__/monaco-editor/index.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/frontend/__mocks__/monaco-editor/index.js b/spec/frontend/__mocks__/monaco-editor/index.js new file mode 100644 index 00000000000..18cc3a7c377 --- /dev/null +++ b/spec/frontend/__mocks__/monaco-editor/index.js @@ -0,0 +1,13 @@ +// NOTE: +// These imports are pulled from 'monaco-editor/esm/vs/editor/editor.main.js' +// We don't want to include 'monaco-editor/esm/vs/editor/edcore' because it causes +// lots of compatability issues with Jest +// Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/209863 +import 'monaco-editor/esm/vs/language/typescript/monaco.contribution'; +import 'monaco-editor/esm/vs/language/css/monaco.contribution'; +import 'monaco-editor/esm/vs/language/json/monaco.contribution'; +import 'monaco-editor/esm/vs/language/html/monaco.contribution'; +import 'monaco-editor/esm/vs/basic-languages/monaco.contribution'; + +export * from 'monaco-editor/esm/vs/editor/editor.api'; +export default global.monaco; |