[code-infra] "pnpm test" works poorly #12935
Labels
core
Infrastructure work going on behind the scenes
enhancement
This is not a bug, nor a new feature
scope: code-infra
Specific to the core-infra product
test
Steps to reproduce
Link to live example: N/A (development environments only)
Steps:
pnpm test
Current behavior
pnpm test
has two problems.First, it runs extremely slowly: it invokes Lerna for each workspace that has a
test
target, and thosetest
targets run Mocha with their workspace directories as spec arguments. However, command-line spec arguments in Mocha are added to, rather than overriding, thespec
in.mocharc.js
(see here), so it ends up running the full test suite one time per workspace.Second, it doesn't set
TZ=UTC
, so many timezone-dependent tests fail.Expected behavior
pnpm test
is an obvious target for new developers, so it should work as expected (e.g., perhaps executepnpm test:unit
?) or indicate what developers should do instead.Context
No response
Your environment
npx @mui/envinfo
Search keywords: pnpm test
The text was updated successfully, but these errors were encountered: