-
Notifications
You must be signed in to change notification settings - Fork 60
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
Dynamically change main entry point in package.json when running tests #185
Comments
We don't support this, and it's unlikely that we would do it in this way. Some extensions compile their package.json into a subdirectory and launch out of there. That said I understand the pain of testing when using a bundler to produce the extension. I want to find a homogenous solution to this case, but this approach is not complete. #186 |
Testability would be severely impacted by changing the main entry point. What if the |
I'm all ears @M00TSDNS for a better solution, but changing the main entry point was the only way I could get both variations to work. |
I used
|
My extension is bundled using esbuild and I set the produced
out/main.js
file asmain
entry point in package.json.For testing I do not use esbuild, but tsc, which produces different files and I have to change the main entry point to
out/extension/extension.js
. Doing this manually is obviously not a good solution, so I wonder if and how I can override this when starting the tests with@vscode/test-electron
?The text was updated successfully, but these errors were encountered: