Skip to content

Improve output for yarn integrity check

Inactive Account requested to merge winh-yarn-integrity-check-output into master

What does this MR do?

Improve output if yarn detects missing dependencies.

Screenshots

Before After
 $ yarn jest spec/frontend/monitoring/components/dashboard_spec.js
yarn run v1.16.0
$ yarn check-dependencies
$ yarn check --integrity
warning Integrity check: Top level patterns don't match
error Integrity check failed
error 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.js
yarn 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.
Before After
Screen_Shot_2019-09-03_at_08.44.41 Screen_Shot_2019-09-03_at_08.43.07
Screen_Shot_2019-09-03_at_08.49.28 Screen_Shot_2019-09-03_at_08.49.10
Edited by Inactive Account

Merge request reports

Loading