You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vitest VSCode fails to start without a Vitest config file.
I am pretty sure in the past it was able to start without a config file. Also I found #348 mentioning the same issue and having a fix provided for it. So perhaps this is a regression.
Reproduction
Open a repository without a Vitest config file.
Output
[INFO 20:27:00] [v0.10.2] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace.
[Error 20:27:00] [API] Failed to start Vitest: No vitest config files found
Version
v0.10.2
Validations
Check that you are using the latest version of the extension
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
The extension expects either the config or a script in package.json that starts with vitest. Starting Vitest for any project seems excessive. What if you have vitest installed globally?
More seriously, I understand the reason behind the decision you are describing. Perhaps the log can be changed to explain the situation / requirements or make these requirements documented somewhere?
Describe the bug
Vitest VSCode fails to start without a Vitest config file.
I am pretty sure in the past it was able to start without a config file. Also I found #348 mentioning the same issue and having a fix provided for it. So perhaps this is a regression.
Reproduction
Open a repository without a Vitest config file.
Output
[INFO 20:27:00] [v0.10.2] Vitest extension is activated because Vitest is installed or there is a Vite/Vitest config file in the workspace. [Error 20:27:00] [API] Failed to start Vitest: No vitest config files found
Version
v0.10.2
Validations
The text was updated successfully, but these errors were encountered: