diff options
Diffstat (limited to 'spec/frontend/__mocks__/monaco-editor/index.js')
-rw-r--r-- | spec/frontend/__mocks__/monaco-editor/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/frontend/__mocks__/monaco-editor/index.js b/spec/frontend/__mocks__/monaco-editor/index.js index 18cc3a7c377..7c53cfb5174 100644 --- a/spec/frontend/__mocks__/monaco-editor/index.js +++ b/spec/frontend/__mocks__/monaco-editor/index.js @@ -9,5 +9,8 @@ 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'; +// This language starts trying to spin up web workers which obviously breaks in Jest environment +jest.mock('monaco-editor/esm/vs/language/typescript/tsMode'); + export * from 'monaco-editor/esm/vs/editor/editor.api'; export default global.monaco; |