From 79f7adc287168f671be64437995cdd1f7e9bea8d Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Thu, 26 Dec 2019 13:31:11 -0800 Subject: [PATCH] build: use c8 for coverage (#259) --- packages/google-cloud-oslogin/package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-oslogin/package.json b/packages/google-cloud-oslogin/package.json index 55ed5f0a8959..f4fd62732092 100644 --- a/packages/google-cloud-oslogin/package.json +++ b/packages/google-cloud-oslogin/package.json @@ -29,10 +29,8 @@ "Google Cloud OS Login API" ], "scripts": { - "test": "npm run cover", - "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", + "test": "c8 mocha", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "test-no-cover": "mocha test/*.js", "lint": "eslint '**/*.js'", "docs": "jsdoc -c .jsdoc.js", "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", @@ -55,7 +53,7 @@ "jsdoc-region-tag": "^1.0.2", "linkinator": "^1.5.0", "mocha": "^6.0.0", - "nyc": "^14.0.0", + "c8": "^7.0.0", "power-assert": "^1.4.4", "prettier": "^1.9.2" }