tests: make yarn unit run all available unit tests #13148
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
we keep growing
yarn unit
by adding every newyarn unit-*
, butjest.config.js
has to have references to these files anyways, soyarn jest
works just fine if you just want to run all the unit tests :)This also fixes some overlaps and cracks between the
yarn unit-*
s. The currentyarn unit
doesn't runclients/test/extension/popup-test.js
clients/test/extension/settings-controller-test.js
clients/test/lightrider-entry-test.js
docs/recipes/integration-test/example-lh-auth.test.js
third-party/chromium-synchronization/inspector-issueAdded-types-test.js
third-party/chromium-synchronization/installability-errors-test.js
the last two might be on purpose but seems like they should be in the testing path if the goal is for changes in Canary to alert us to needed updates? It also made us miss that the path to
LH_ROOT
was wrong ininspector-issueAdded-types-test.js
and it doesn't run at all.We're also running the
flow-report
tests twice because they're picked up by bothyarn unit-report
andyarn unit-flow
.This is most important in CI, where unit.yml runs them via
yarn unit:ci
and should be running all the tests.