The new incoming move to a monorepo introduces .env.test so Matomo tests can load PUBLIC_MATOMO_* variables before $env/dynamic/public is evaluated. This isn't nice. Get rid of it.
Refactor src/lib/analytics/matomo.ts so pure functions and config parsing can be tested with explicit fixture env objects, without needing process-level env setup.
The new incoming move to a monorepo introduces
.env.testso Matomo tests can loadPUBLIC_MATOMO_*variables before$env/dynamic/publicis evaluated. This isn't nice. Get rid of it.Refactor
src/lib/analytics/matomo.tsso pure functions and config parsing can be tested with explicit fixture env objects, without needing process-level env setup.