source-academy/frontend

Ace editor warning in test suite

chownces opened this issue · 0 comments

There is currently some acequire import issue in ace-builds when running the test suite, where the following are undefined in the test environment:

const defaultMode = acequire('ace/mode/javascript').Mode();

acequire('ace/ext/language_tools').setCompleters([

Thus, acequire is currently being mocked in the test suite in AssessmentWorkspace and Playground where the tests render the Ace editor. However, these mocks result in the following console warning as the actual Ace editor is not initialized properly:

image

TODO:
Let's debug the root cause and fix the acequire import issue