Open tlbdk opened 1 year ago
thanks for your contribution
@firsttris hello, I've stumbled upon this issue too and glad to see that fix exists. Kindly advice if you plan to accept this PR.
Some more info I found, ?
is a wildcard character in zsh
~ > echo ?
zsh: no matches found: ?
In bash, it just prints ?
.
So escaping provided by the vscode api does not escape the ?
(and nor should it I think?):
https://github.com/firsttris/vscode-jest-runner/blob/e3f7c76334c248ff426fd078a7634213b4106174/src/jestRunner.ts#L159
For powershell on windows, it is trying to match against literal double quotes, so it finds no matches (I don't think double quotes should be being used for powershell at all, but another problem).
Here is where powershell
behaves differently to bash
:
❯ echo """abc"""
"abc"
In summary, it seems fine to use single quotes on linux to solve this issue
Will generate the following command run:
and the following command with debug:
Resulting in: