yarn workspaces foreach --parallel --all run test

Category: Node.js & npm/yarn

yarn workspaces foreach --parallel --all run test

Run a script across workspaces in parallel

Executes the test script in every workspace simultaneously, cutting monorepo test time dramatically. --parallel runs tasks concurrently and --all includes every workspace rather than just descendants. Add -t for topological ordering that builds dependencies first.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.