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
Right now I'd like to use the ./vitest.workspace.json because this is not a monorepo, neither it works well with vscode multi-root-workspaces due to many old school setup not so easy to change.
Unfortunately vitest vscode doesn't recognize the file or at least tests from both frontend-projects do not show up.
After trying little more around, I found vscode-jest#virtualfolders which provides enough to setup in the given folder structure.
If vitest would provide something like that, I could have 2 rootFolders (which indeed they are):
{
"vitest.virtualFolders": [
{
"name": "Project A Unit Tests",
"rootPath": "frontend/projectA/",
"runMode": "on-demand",
"vitestCommandLine": "npm run test --"
},
{
"name": "Project B Unit Tests",
"rootPath": "frontend/projectB/",
"runMode": "on-demand",
"vitestCommandLine": "npm run test --"
}
]
}
Describe the bug
I have a workspace like that:
Right now I'd like to use the
./vitest.workspace.json
because this is not a monorepo, neither it works well with vscode multi-root-workspaces due to many old school setup not so easy to change.Unfortunately vitest vscode doesn't recognize the file or at least tests from both frontend-projects do not show up.
Reproduction
This is the vitest.workspace.json:
["frontend/*/vite.config.ts"]
System Info
I am working within WSL2 hosted in Windows 11
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: