npm run test --workspaces --if-present

Category: Node.js & npm/yarn

npm run test --workspaces --if-present

Run the test script across every workspace that defines it, skipping those that don't

Runs the test script across every workspace, but gracefully skips any that don't define a test script.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.