2020-03-11 06:10:11 +00:00
|
|
|
// 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';
|
2020-07-07 15:08:49 +00:00
|
|
|
import 'monaco-yaml/esm/monaco.contribution';
|
2020-03-11 06:10:11 +00:00
|
|
|
|
2020-06-10 18:09:15 +00:00
|
|
|
// This language starts trying to spin up web workers which obviously breaks in Jest environment
|
|
|
|
jest.mock('monaco-editor/esm/vs/language/typescript/tsMode');
|
2020-07-07 15:08:49 +00:00
|
|
|
jest.mock('monaco-yaml/esm/yamlMode');
|
2020-06-10 18:09:15 +00:00
|
|
|
|
2020-03-11 06:10:11 +00:00
|
|
|
export * from 'monaco-editor/esm/vs/editor/editor.api';
|
|
|
|
export default global.monaco;
|