You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a script in my package.json to configure various ENV vars and settings when invoking vitest. I would like to configure the extension to use pnpm test to run vitest so my configuration can be shared.
This is basically identical to #366, but despite that issue being closed, there does not appear to be a solution (see below).
I wound up losing my entire development database because I have some tests that verify the database is working correctly using a separate test instance.
Suggested solution
Support a commandLine configuration in the VSCode settings. E.g.,
{
"vitest.commandLine": "pnpm test"`
}
Alternative
I saw the various other commands like shellType, but they don't appear to be useful for this scenario.
The extension doesn't use vitest command, it starts a custom node script, so we cannot expose a way to use custom commands. If you need a certain environment, you can use shellType: 'terminal' with a custom vscode terminal setup. You can also setup custom env with vitest.nodeEnv settings option.
Ah, interesting. I was able to get the nodeEnv to work, but I worry about drift as these commands change. I saw what was in the README re: shellType, but I don't grok how it functions or how to configure it. Are there any examples or additional docs available?
Clear and concise description of the problem
I use a script in my package.json to configure various ENV vars and settings when invoking vitest. I would like to configure the extension to use
pnpm test
to run vitest so my configuration can be shared.This is basically identical to #366, but despite that issue being closed, there does not appear to be a solution (see below).
I wound up losing my entire development database because I have some tests that verify the database is working correctly using a separate test instance.
Suggested solution
Support a
commandLine
configuration in the VSCode settings. E.g.,Alternative
I saw the various other commands like
shellType
, but they don't appear to be useful for this scenario.Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: