Skip to content

vitest.commandLine is gone in 0.5? #306

@appcoders

Description

@appcoders

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.

CleanShot 2024-03-19 at 11 00 27@2x

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.0

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions