Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
test(CI): Use custom reporter to fail builds on test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Feb 9, 2021
1 parent 53fbb6a commit e334047
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 3 deletions.
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@ steps:
failOnStderr: true
- script: |
npm run test:unit -- --coverage --ci
npm run test:unit -- --coverage --ci --reporters=jest-standard-reporter
bash <(curl -s https://codecov.io/bash)
displayName: Run unit tests
failOnStderr: true
- script: |
npm run docs
Expand Down
104 changes: 104 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"lint": "npm run lint:styles && npm run lint:scripts",
"lint:fix": "npm run lint:styles -- --fix && npm run lint:scripts -- --fix",
"lint:styles": "stylelint './src/**/*.css'",
"lint:scripts": "eslint './src/**/*.ts' --quiet",
"lint:scripts": "eslint './src/**/*.ts'",
"format": "prettier --write './**/*.{css,js,json,md,ts,yaml}'",
"test": "npm run test:unit && npm run test:visual",
"test:unit": "jest",
Expand Down Expand Up @@ -96,6 +96,7 @@
"html-loader": "1.3.2",
"html-webpack-plugin": "4.5.1",
"jest": "26.6.3",
"jest-standard-reporter": "2.0.0",
"jsdoc-to-markdown": "6.0.1",
"mathjax-node": "2.1.1",
"mini-css-extract-plugin": "1.3.5",
Expand Down

0 comments on commit e334047

Please sign in to comment.