-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.