vitest-dev / vscode

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

Debugging test regression after 0.10.7 #434

Closed vchirikov closed 2 months ago

vchirikov commented 2 months ago

Describe the bug

Between 0.10.7..0.12.0 process.chdir() was removed, which causes vitest start problem if you're use vscode workspace folder != folder there vites.config.ts present. (vitest failed with exitcode 1)

Reproduction

bug

Output

--

Version

0.12.4

Validations

sheremet-va commented 2 months ago

Can you not assume when the bug is, but rather describe the issue itself. process.chdir is removed because child_process is initiated with correct cwd now and has nothing to do with debugger.

sheremet-va commented 2 months ago

Debugger config wasn't using project CWD: https://github.com/vitest-dev/vscode/commit/3bfe794850cf4c9f7e3d571f00d5f4d052cb55ca

vchirikov commented 2 months ago

@sheremet-va thanks for the fast fix