diff --git a/libraries/api/package.json b/libraries/api/package.json index c16d4d3ac1..91f536b9ef 100644 --- a/libraries/api/package.json +++ b/libraries/api/package.json @@ -6,8 +6,8 @@ "description": "taskcluster-lib-api", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/app/package.json b/libraries/app/package.json index 98f2f0c8b5..14b57ebc03 100644 --- a/libraries/app/package.json +++ b/libraries/app/package.json @@ -6,8 +6,8 @@ "description": "taskcluster-lib-app", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/azure/package.json b/libraries/azure/package.json index bf3c59b013..e3b7593fe2 100644 --- a/libraries/azure/package.json +++ b/libraries/azure/package.json @@ -6,8 +6,8 @@ "description": "Azure SAS credential shim for Taskcluster.", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/config/package.json b/libraries/config/package.json index 79429fafab..786dc10f97 100644 --- a/libraries/config/package.json +++ b/libraries/config/package.json @@ -7,8 +7,8 @@ "license": "MPL-2.0", "main": "./src/index.js", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" } diff --git a/libraries/iterate/package.json b/libraries/iterate/package.json index 24dd32e1cd..cee4422cfe 100644 --- a/libraries/iterate/package.json +++ b/libraries/iterate/package.json @@ -5,8 +5,8 @@ "description": "A library to share iteration logic", "main": "src/index.js", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha" }, diff --git a/libraries/loader/package.json b/libraries/loader/package.json index ddaf190ca2..4725bf8daf 100644 --- a/libraries/loader/package.json +++ b/libraries/loader/package.json @@ -8,8 +8,8 @@ "test": "test" }, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*.js", "lint": "eslint src/*.js test/*.js" }, diff --git a/libraries/monitor/package.json b/libraries/monitor/package.json index 22b8e3170c..ba99f61ee8 100644 --- a/libraries/monitor/package.json +++ b/libraries/monitor/package.json @@ -6,8 +6,8 @@ "description": "Make it easy to hook up monitoring and metrics for taskcluster services.", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/pulse/package.json b/libraries/pulse/package.json index de6c466db6..4f3a82f01e 100644 --- a/libraries/pulse/package.json +++ b/libraries/pulse/package.json @@ -7,8 +7,8 @@ "author": "Dustin J. Mitchell ", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/libraries/references/package.json b/libraries/references/package.json index 0a65bdd330..c5bacddb7a 100644 --- a/libraries/references/package.json +++ b/libraries/references/package.json @@ -4,8 +4,8 @@ "version": "14.1.0", "main": "src/index.js", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/scopes/package.json b/libraries/scopes/package.json index 0f2a7fa4e3..4e7cc3d94c 100644 --- a/libraries/scopes/package.json +++ b/libraries/scopes/package.json @@ -6,8 +6,8 @@ "description": "Scope checking utilities for Taskcluster", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/testing/package.json b/libraries/testing/package.json index 732e4b31cb..1505dbbcb4 100644 --- a/libraries/testing/package.json +++ b/libraries/testing/package.json @@ -6,8 +6,8 @@ "description": "taskcluster-lib-testing", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/libraries/validate/package.json b/libraries/validate/package.json index c890dfe2f1..b8e790f533 100644 --- a/libraries/validate/package.json +++ b/libraries/validate/package.json @@ -6,8 +6,8 @@ "description": "Validate schemas for Taskcluster projects", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/services/auth/package.json b/services/auth/package.json index 5f3d2f49dc..e12a522137 100644 --- a/services/auth/package.json +++ b/services/auth/package.json @@ -4,8 +4,8 @@ "private": true, "main": "node src/server production", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "test:cleanup": "mocha test/cleanup.js", "lint": "eslint src/*.js test/*.js" diff --git a/services/built-in-workers/package.json b/services/built-in-workers/package.json index c8de5f59f0..0ab6adfa19 100644 --- a/services/built-in-workers/package.json +++ b/services/built-in-workers/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/github/package.json b/services/github/package.json index fb63c60ab7..c4b7bdb400 100644 --- a/services/github/package.json +++ b/services/github/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" } diff --git a/services/hooks/package.json b/services/hooks/package.json index c625f05d8e..542b210dff 100644 --- a/services/hooks/package.json +++ b/services/hooks/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" }, diff --git a/services/index/package.json b/services/index/package.json index 14adf6a2dd..9be5002002 100644 --- a/services/index/package.json +++ b/services/index/package.json @@ -4,8 +4,8 @@ "private": true, "main": "./src/main.js", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "test": "mocha test/*_test.js" } diff --git a/services/login/package.json b/services/login/package.json index ee8154e4d4..15ff6220db 100644 --- a/services/login/package.json +++ b/services/login/package.json @@ -6,8 +6,8 @@ "author": "Jonas Finnemann Jensen ", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js src/*/*.js test/*.js", "test": "mocha test/*_test.js" } diff --git a/services/notify/package.json b/services/notify/package.json index e254e96f99..b96d8fcaba 100644 --- a/services/notify/package.json +++ b/services/notify/package.json @@ -5,8 +5,8 @@ "description": "Collect all of the ways of notifying users into one place for other tc services.", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/purge-cache/package.json b/services/purge-cache/package.json index 81149ad390..111eb8a65e 100644 --- a/services/purge-cache/package.json +++ b/services/purge-cache/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/queue/package.json b/services/queue/package.json index 46f3783298..b7dd9af5bd 100644 --- a/services/queue/package.json +++ b/services/queue/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/secrets/package.json b/services/secrets/package.json index 0a79e9b4c9..9290301b77 100644 --- a/services/secrets/package.json +++ b/services/secrets/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/treeherder/package.json b/services/treeherder/package.json index d35fc6d563..ce76d1f9a1 100644 --- a/services/treeherder/package.json +++ b/services/treeherder/package.json @@ -3,8 +3,8 @@ "version": "14.1.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "test": "mocha test/*_test.js", "lint": "eslint src/*.js test/*.js" } diff --git a/services/web-server/package.json b/services/web-server/package.json index 88b7cbb6c6..1bbf11f2f2 100644 --- a/services/web-server/package.json +++ b/services/web-server/package.json @@ -6,8 +6,8 @@ "author": "Eli Perelman ", "license": "MPL-2.0", "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "start": "NODE_ENV=development node src/main.js devServer", "lint": "eslint --cache --format codeframe --ext mjs,js src test", "test": "mocha test/*_test.js" diff --git a/services/worker-manager/package.json b/services/worker-manager/package.json index 6723dd93fc..8b0c19164b 100644 --- a/services/worker-manager/package.json +++ b/services/worker-manager/package.json @@ -7,8 +7,8 @@ "license": "MPL-2.0", "private": true, "scripts": { - "coverage": "nyc npm test", - "coverage:report": "nyc npm test && nyc report --reporter json --report-dir ../../artifacts", + "coverage": "c8 yarn test", + "coverage:report": "c8 yarn test && c8 report --temp-directory ./coverage/tmp --reporter json --report-dir ../../artifacts", "lint": "eslint src/*.js test/*.js", "fixlint": "eslint --fix src/*.js test/*.js", "test": "mocha test/*_test.js"