Closed fdc-viktor-luft closed 4 months ago
From a quick look, your setup file looks a bit suspicious. https://github.com/fdc-viktor-luft/raw-vite-app/blob/baf04e23ae11e403f35246fe7090100c3b2156dc/setupTests.ts#L5-L8 Can you check if commenting out them helps anything?
The code wasn't the issue. After updating to plugin version 0.8.5 just now, it works in the reproduction repo inside the "Testing" panel. However, the icons still don't appear, and it doesn't work in another project that has a workspace.
Will try to find some time to create a repro with a workspace.
ok. I made some progress. The issue is highly depending on the amount of workspace packages.
I could only add a maximum of 6 workspace packages into the vitest.workspace.js
.
Then I can also see this log:
[INFO 14:16:17] [API] Vitest process 28577 created
Hint: Also my test run icons re-appeared for the added workspace packages. And it doesn't matter which 6 I pick. All work.
The loading takes significantly longer with each added workspace package.
But my current target are 50 workspace packages. However, this never resolves.
But my current target are 50 workspace packages. However, this never resolves.
Is running Vitest from the terminal fast enough with this amount of packages?
I never tried running the workspace using vitest 🙈 This lead finally to seeing the actual error, while the plugin was not responding at all.
Running vitest run
from the workspace level results in the following error:
Error: Project name "typescript" is not unique. All projects in a workspace should have unique names.
And it escapes. The plugin should print that error as well.
After I excluded the duplicates the plugin operates normally with roughly 40 workspace packages.
Describe the bug
Opening the "Testing" view the process never starts and shows just a spinner on the label "Resolving Vitest..."
Maybe related: I cannot see any "play" icons in the file view anymore.
Reproduction
The plugin should tell me why it cannot resolve Vitest.
Could reproduce on this repo as well: https://github.com/fdc-viktor-luft/raw-vite-app
Here is my VSCode About:
Having the same issue under Linux.
Output
Version
0.8.4
Validations