Skip to content

Fail frontend pipeline if warnings are present

Sarah German requested to merge frontend-ci-exit-codes into main

What does this MR do and why?

  • Adjusts Jest configuration so that the CI job will fail if Jest hits a console error (adding https://www.npmjs.com/package/jest-fail-on-console)
  • Fixes the Jest test that now fails the pipeline
  • Adjusts stylelint configuration so that the CI job will fail if stylelint returns warnings
  • Fixes the stylelint warning that now fails the pipeline

Closes #113 (closed)

Screenshots, screen recordings, or links to review app

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/doc/setup.md.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sarah German

Merge request reports

Loading