vitest-dev / vscode

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

[0.5.13] TypeError: Cannot convert undefined or null to object #329

Closed vchirikov closed 4 months ago

vchirikov commented 4 months ago

Describe the bug

image

Reproduction

Just open explorer tab.

Vitest config section:

test: {
    root: rootDir,
    testTimeout: 10_000,
    css: false,
    globals: false,
    environment: 'happy-dom',
    include: ['./tests/**/*.test.{ts,tsx}'],
    setupFiles: ['./tests/vitest.setup.ts'],
    isolate: false,
    typecheck: {
      enabled: true,
      tsconfig: 'tsconfig.json',
    }
  },

Output

[INFO 1:16:42 AM] [v0.5.13] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[INFO 1:16:43 AM] [API] Running Vitest: v1.4.0 (Q:/code/vchirikov/alphy/code/nodejs/vite.config.ts)
[INFO 1:16:44 AM] [API] Vitest process 26048 created
[Worker] Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.[39
[INFO 1:18:07 AM] [API] Running Vitest: v1.4.0 (Q:/code/vchirikov/alphy/code/nodejs/vite.config.ts)
[INFO 1:18:08 AM] [API] Vitest process 31224 created
[Worker] Testing types with tsc and vue-tsc is an experimental feature.
Breaking changes might not follow SemVer, please pin Vitest's version when using it.[39

Version

v0.5.13 (pre-release)

Validations

github-actions[bot] commented 4 months ago

Hello @vchirikov. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.