不要怂,就是干,撸起袖子干!

Commit 24291467 by Yazan Medanat Committed by Sushant

refactor(coverage): replace deprecated package istanbul with nyc (#10459)

1 parent c463314d
Showing with 4 additions and 3 deletions
......@@ -13,6 +13,7 @@ sscce.js
package-lock.json
yarn.lock
.nyc_output
coverage-*
coverage
test/tmp/*
......
......@@ -68,13 +68,13 @@
"eslint-plugin-mocha": "^5.2.1",
"hints": "^1.x",
"husky": "^1.3.1",
"istanbul": "^0.x",
"js-combinatorics": "^0.5.4",
"lcov-result-merger": "^3.0.0",
"lint-staged": "^8.1.0",
"mariadb": "^2.0.3",
"mocha": "^5.x",
"mysql2": "^1.6.4",
"nyc": "^13.3.0",
"pg": "^7.8.0",
"pg-hstore": "^2.x",
"pg-types": "^2.0.0",
......@@ -148,8 +148,8 @@
"test-all": "npm run test-mariadb && npm run test-mysql && npm run test-sqlite && npm run test-postgres && npm run test-postgres-native && npm run test-mssql",
"test-typings": "tsc -b types/tsconfig.json && tsc -b types/test/tsconfig.json",
"cover": "rimraf coverage && npm run teaser && npm run cover-integration && npm run cover-unit && npm run merge-coverage",
"cover-integration": "cross-env COVERAGE=true ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --require scripts/mocha-bootload --report lcovonly -- -t 30000 --exit --ui tdd \"test/integration/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/integration.info')\"",
"cover-unit": "cross-env COVERAGE=true ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --require scripts/mocha-bootload --report lcovonly -- -t 30000 --exit --ui tdd \"test/unit/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/unit.info')\"",
"cover-integration": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit --ui tdd \"test/integration/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/integration.info')\"",
"cover-unit": "cross-env COVERAGE=true nyc --reporter=lcovonly mocha --require scripts/mocha-bootload -t 30000 --exit --ui tdd \"test/unit/**/*.test.js\" && node -e \"require('fs').renameSync('coverage/lcov.info', 'coverage/unit.info')\"",
"merge-coverage": "lcov-result-merger \"coverage/*.info\" \"coverage/lcov.info\"",
"sscce": "env-cmd $npm_package_options_env_cmd node sscce.js",
"sscce-mariadb": "cross-env DIALECT=mariadb npm run sscce",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!