Vitest Workspaces Bug
Problem
yarn test
Why is define
not working in the project level config?
Expected Behavior
Define should define these globals for tests just like it does for a typical Vite build.
Some Questions
-
Why were Vitest workspaces made to ignore a root config? It's mentioned in the documentation that it is ignored. It seems like a desirable behavior for a monorepo full of similarly designed libraries.
-
Why is the root config loaded at all if it is ignored by Workspaces?
-
Using the
/packages/ts/**
splat seems to change the config loading behavior compared to/packages/ts/*
in a way that's tough to describe. Using a pattern at all that's different from a single*
seems to result in this. It's subtle and should be explicitly documented in my opinion.