We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've managed to get test running working in my monorepo using workspaces.
When I try and run a debug, the command that gets executed seems to be missing the vite command:
/Users/human/.nvm/versions/node/v18.0.0/bin/node /Users/human/Code/remix-cloudflare-experiment/packages/remix-app/tests/encryption.test.ts -t should encode and decode --api.port 55438 --api.host 127.0.0.1
This means I get an error because of node trying to execute a typescript file.
Any ideas why this might be happening? There must at least be some error checking missing that's allowing a command to execute with no vitest command.
Looking at the code it seems like it usually tries to fall back to a default though..
vscode/src/pure/runner.ts
Lines 67 to 69 in bf71541
My settings.json:
{ "vitest.enable": true, "vitest.commandLine": "pnpm test", "vitest.nodeEnv": { "NODE_OPTIONS": "--experimental-global-webcrypto" }, }
the test command in my package:
"test": "NODE_OPTIONS='--experimental-global-webcrypto' vitest run",
The text was updated successfully, but these errors were encountered:
A couple more observations:
"vitest.commandLine": "yarn vitest"
"vitest.commandLine": "yarn vitest --"
--
Sorry, something went wrong.
Also hit this. Had to run vitest manually in the "Javascript Debug Terminal" to debug, but this kinda defeats the point of the extension.
Any update on this? Having to create a new Javascript Debug Terminal each time I want to debug a test is kind of painful.
This should be fixed in pre-release 0.5.0 and higher. Note that the extension now requires Vitest 1.4.0 or higher.
We don't use Vitest CLI anymore, but call the API directly, so this is no longer a problem.
No branches or pull requests
I've managed to get test running working in my monorepo using workspaces.
When I try and run a debug, the command that gets executed seems to be missing the vite command:
This means I get an error because of node trying to execute a typescript file.
Any ideas why this might be happening? There must at least be some error checking missing that's allowing a command to execute with no vitest command.
Looking at the code it seems like it usually tries to fall back to a default though..
vscode/src/pure/runner.ts
Lines 67 to 69 in bf71541
My settings.json:
the test command in my package:
The text was updated successfully, but these errors were encountered: