Ace editor warning in test suite
chownces opened this issue · 0 comments
chownces commented
There is currently some acequire
import issue in ace-builds when running the test suite, where the following are undefined in the test environment:
frontend/src/commons/editor/Editor.tsx
Line 673 in 00d49de
frontend/src/commons/editor/Editor.tsx
Line 445 in 00d49de
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:
TODO:
Let's debug the root cause and fix the acequire
import issue