Only run a package's `test` when inside that package
Closed this issue · 2 comments
ojkelly commented
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.
cmark1302 commented
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
ojkelly commented
@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