Open mgscuteri opened 1 year ago
I have a similar issue, with a different message in a VSC notification: "Could not find ng executable? Please verify that you've provided correct paths in the config and that you have run npm install."
Funnily, the Run Test command works. When I look at the source code, I see the latter just use ng on the path, while Debug tries to use the one in the project.
Putting just "ng" in the setting doesn't work either, as the code does a join(cwd, program)
. Can't use an empty cwd (projectPath) either.
Using the last setting from above, with the .js extension, worked for me. I think this should be in the default of the extension.
In the end, it seems to be a useful extension, working where vscode-jest-runner fails (as it uses pure Jest).
A little weakness is to rely only on the current test name (in it
for example), which can be duplicated in the file (under a different describe
, for example; eg. same test with a different test set).
I am getting the following error when using the extension to run a test
The relative path of my angular/cli ng.js is:
I have tried the following workspace settings:
I have reloaded vscode in between each settings change. I am on VS Code version: