Vitest Workspaces don't respect multiple configs in a single workspace package #5530
Closed
6 tasks done
Labels
feat: workspace
Issues and PRs related to the workspace feature
p4-important
Violate documented behavior or significantly improves performance (priority)
Describe the bug
I've got a monorepo with a few packages in it. In one of those packages, I need to use two different testing setups (it's an electron app so there's both main process and renderer process setups required).
When running the tests through vitest's workspace feature, I've noticed that it gathers all the config files listed in the vitest.workspace.js file, but only uses the first config file for a given package. I've made a minimal repo here
@sheremet-va has helpfully provided a workaround to this issue. You can just put the other config file in a different folder, then adjust your
includes
as appropriate. Example here.Reproduction
https://github.com/conallroli/vitest-workspace-repro
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: