-
-
Notifications
You must be signed in to change notification settings - Fork 112
Closed
Labels
Description
Describe the bug
In my package.json I defined
"test": "DOTENV_CONFIG_PATH=.env.testing LOG_LEVEL=debug vitest",
and in vscode settings:
"vitest.commandLine": "yarn test --"
This works on vitest vscode 0.4.2 - on newer versions >0.5 the vitest.commandLine is gone and tests cannot be loaded at all because the environment variables are missing.
Reproduction
See above.
System Info
devcontainer on macOS 14.4:
System:
OS: Linux 6.5 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
CPU: (10) arm64 unknown
Memory: 2.66 GB / 11.67 GB
Container: Yes
Shell: 5.1.4 - /bin/bash
Binaries:
Node: 20.11.1 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 10.2.4 - /usr/local/bin/npm
pnpm: 8.15.4 - /usr/local/share/npm-global/bin/pnpm
IDEs:
Nano: 5.4 - /bin/nano
VSCode: 1.87.2 - /vscode/vscode-server/bin/linux-arm64/863d2581ecda6849923a2118d93a088b0745d9d6/bin/remote-cli/code
npmPackages:
@vitest/ui: ^1.4.0 => 1.4.0
vitest: ^1.4.0 => 1.4.0Used Package Manager
yarn
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
