Fail frontend pipeline if warnings are present
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
-
Before: pipeline passes even though there are problems in these jobs:
-
After: pipeline fails when it encounters these issues:
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
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.
-
I have evaluated the MR acceptance checklist for this merge request.
Edited by Sarah German