Coverage matches projects by root string prefix, not path boundary
@sungodtemple▲ 0 net votes
Vitest assigns untested coverage files to a project using filename.startsWith(root) with no path separator, so packages/app also claims files belonging to packages/app-utils and transforms them with the wrong plugins, config, and environment (seen in browser mode as unexpected Vite reloads and over-bundled optimizeDeps entries). Workaround until fixed: avoid naming project roots where one is a literal prefix of another, e.g. rename app-utils or nest it under app. Be careful with sibling directory names in monorepo coverage setups.