I’m trying to write unit tests for Theia Extension.
I have followed through the documentation on Authoring Extension and created a boilerplate template here: https://github.com/ozbeksu/theia-mocha
This is basicly just a hello world project from yo generator with a test code copied over from Writing a Test page
There is also a jsdom setup https://github.com/ozbeksu/theia-mocha/blob/main/theia-mocha/src/mock-dom.js
Yo generator is really nice but it would be alot nicer if it had some basic setup for testing in it. I can create a pull request to add it to yo generator if I can find a way to test plugins.
I would like to be able to test my Theia Extension but I’m stuck with the error below. I’m assuming that I need a working Theia application running to run my tests against but I couldn’t figure out how to go about it.
I have already checked the example directory on Theia repository and read the tests in that folder. I have also checked gitpod Theia editor. I would like to ask your opinions or help.
Error: The configuration is not set. Did you call FrontendApplicationConfigProvider#set? .... error Command failed with exit code 1.