ojkelly/yarn.build

Only run a package's `test` when inside that package

Closed this issue · 2 comments

yarn test is a common job inside the development loop, and so running all tests can be unexpected.

yarn test -A to test all, and testing all when running outside a workspace or in root should work.

Thanks for adding this support.

Would be good to add a support for run parallel test as well without running dependencies
yarn test package1 package2 package3

@cmark1302 yeah I like that idea.

I'd also add being able to do yarn test packages/app/* yarn test @app/* to test based on path or package name