vitest-dev / vscode

VS Code extension for Vitest
https://vitest.dev/vscode
MIT License
740 stars 83 forks source link

Unable to resolve tests in monorepo with vitest.workspace.ts + root vitest.config.ts #319

Closed chriswheeldon-peakon closed 5 months ago

chriswheeldon-peakon commented 5 months ago

Describe the bug

The plugin resolves no tests in a monorepo with a vitest.workspace.ts and root vitest.config.ts. I do not see any errors in the plugin logs.

I am using pre-release version 0.5.9 of the plugin.

Reproduction

The quickest way to reproduce is to add an empty or minimal (export default defineConfig({});) vitest.config.ts to the root of the monorepo-vitest-workspace sample (here).

System Info

System:
    OS: macOS 14.3.1
    CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 2.06 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - /var/folders/sb/jdkc4cv91zvgvvzwhq9lyc6w0000gp/T/fnm_multishells/37003_1711106402798/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.4 - /var/folders/sb/jdkc4cv91zvgvvzwhq9lyc6w0000gp/T/fnm_multishells/37003_1711106402798/bin/npm
    pnpm: 8.15.3 - /var/folders/sb/jdkc4cv91zvgvvzwhq9lyc6w0000gp/T/fnm_multishells/37003_1711106402798/bin/pnpm
  IDEs:
    VSCode: 1.87.2 - /Applications/Visual Studio Code.app/Contents/Resources/app/bin/code
    Vim: 9.0 - /usr/bin/vim
    Xcode: 15.3/15E204a - /usr/bin/xcodebuild
  Browsers:
    Chrome: 123.0.6312.59
    Safari: 17.3.1
  npmPackages:
    vitest: ^1.4.0 => 1.4.0

Used Package Manager

npm

Validations