소스 검색

Internal: Restored nyc for CC check.

Marek Lewandowski 5 년 전
부모
커밋
0bbf5c9619
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      package.json
  2. 2 0
      scripts/continuous-integration-run-tests.sh

+ 1 - 0
package.json

@@ -98,6 +98,7 @@
     "mini-css-extract-plugin": "^0.4.0",
     "minimatch": "^3.0.4",
     "mrgit": "^1.0.0",
+    "nyc": "^15.0.1",
     "postcss-loader": "^3.0.0",
     "progress-bar-webpack-plugin": "^1.12.1",
     "raw-loader": "^3.1.0",

+ 2 - 0
scripts/continuous-integration-run-tests.sh

@@ -68,6 +68,8 @@ for package in $packages; do
     errorOccured=1
   fi
 
+  npx nyc check-coverage --branches 100 --functions 100 --lines 100 --statements 100
+
   if [ "$?" -ne "0" ]; then
     echo -e "💥 ${RED}$package${NC} doesn't have required code coverage 💥"
     failedCoveragePackages="$failedCoveragePackages $package"