Skip to content

Ensure that dependencies are installed before running frontend tests

Inactive Account requested to merge winh-frontend-tests-check-dependencies into master

What does this MR do?

Checks if dependencies match the yarn.lock file before running Jest or Karma. That way we get an output like the following instead of randomly failing tests:

$ yarn jest
yarn run v1.13.0
$ yarn check
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "ts-jest@^23.10.5"
error "@gitlab/svgs" is wrong version: expected "1.60.0", got "1.59.0"
error "@gitlab/ui" is wrong version: expected "3.10.0", got "3.7.0"
warning Resolution field "ts-jest@24.0.0" is incompatible with requested version "vue-jest#ts-jest@^23.10.5"
warning "chokidar#fsevents#node-pre-gyp@^0.10.0" could be deduped from "0.10.3" to "node-pre-gyp@0.10.3"
info Found 2 warnings.
error Found 2 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.

Merge request reports