test(jest
): need to make adjustments so monaco can work with jest
#44
Labels
bug
Something isn't working
jest
): need to make adjustments so monaco can work with jest
#44
Getting error when trying to run our tests after adding monaco editor to the app:
SyntaxError: Cannot use import statement outside a module
(referring to the
MonacoEditor
import in theCodeEditor
component)Monaco uses ESM to reduce bundle size, but Jest doesn't currently support ESM
reading about Jest & ESmodules: jestjs/jest#4842
reading about possible fixes to our current problem: microsoft/monaco-editor#996
The text was updated successfully, but these errors were encountered: