Improve output if yarn detects missing dependencies.
Before
After
$ yarn jest spec/frontend/monitoring/components/dashboard_spec.jsyarn run v1.16.0$ yarn check-dependencies$ yarn check --integritywarning Integrity check: Top level patterns don't matcherror Integrity check failederror Found 1 errors.info Visit https://yarnpkg.com/en/docs/cli/check for documentation about this command.error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ yarn jest spec/frontend/monitoring/components/dashboard_spec.jsyarn run v1.16.0$ yarn check-dependencies$ scripts/frontend/check_dependencies.sh yarn check --integrity failed! You are probably missing some dependencies. Please run yarn install and try again.error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.error Command failed with exit code 1.info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.