kaoto-ui
kaoto-ui copied to clipboard
Code editor isn't rendering in the test.
Please describe the task that needs to be done
It appears that current code editor isn't really rendered. This might be actually an issue with Monaco Jest or missing some dependencies or mocks.
This is current render of SourceCodeEditor component in the test:
body>
<div>
<textarea />
</div>
</body>
@lordrip is this still happening? How can I check?
Yes, it's still happening. This is because the monaco
editor is a bit complex to run it through the JSDom environment.
We're mocking the whole component here
In order to fix this, the idea is to split the buttons from the code editor itself, so we can at least check the interaction between Kaoto and the code editor.