Move openTerminal() to common util file#2711
Conversation
|
I found a way to make the addons use the shared functions, but I don't love it because they have to import from A better approach seems to be to use something like |
| "strict": true, | ||
| "types": [ | ||
| "../../../node_modules/@types/mocha", | ||
| "../../../out-test/api/TestUtils" |
There was a problem hiding this comment.
Hmm, not really a far of referencing out but it does indeed seem to work and what I preferred doesn't (because mocha doesn't accept it as you mention). The main problem I see with it now is that the files that reference it have errors before running the first build. I guess we can go with this, if it ends up causing problems we can always go back to duplicating for addons 👍
There was a problem hiding this comment.
Yeah, I wasn't a fan either, but I think it's better than duplicated code.
Part of #2699. Moved
openTerminal()into a common util file that is used by everything intest/api/. I'm not sure how to make this accessible to the addon test files.