浏览代码

Merge branch 'monorepo-pending' into monorepo-import

Marek Lewandowski 5 年之前
父节点
当前提交
e381da4e3d
共有 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"