Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(jest): need to make adjustments so monaco can work with jest #44

Closed
ramfox opened this issue Jan 27, 2021 · 0 comments
Closed

test(jest): need to make adjustments so monaco can work with jest #44

ramfox opened this issue Jan 27, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ramfox
Copy link
Member

ramfox commented Jan 27, 2021

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 the CodeEditor 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

@ramfox ramfox added the bug Something isn't working label Jan 27, 2021
@ramfox ramfox closed this as completed Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant