From 85098e07d48cc099985ba6d53b40b683315f54c0 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 5 Oct 2023 12:09:39 +0200 Subject: [PATCH] Configured all unit tests to use dot reporter refs https://ghost.slack.com/archives/C02G9E68C/p1696490748701419 - this configures mocha to use the dot reporter because the default is way too verbose in CI --- ghost/adapter-cache-memory-ttl/package.json | 2 +- ghost/adapter-cache-redis/package.json | 2 +- ghost/adapter-manager/package.json | 2 +- ghost/announcement-bar-settings/package.json | 2 +- ghost/api-framework/package.json | 2 +- ghost/api-version-compatibility-service/package.json | 2 +- ghost/audience-feedback/package.json | 2 +- ghost/bookshelf-repository/package.json | 2 +- ghost/bootstrap-socket/package.json | 2 +- ghost/collections/package.json | 2 +- ghost/constants/package.json | 2 +- ghost/core/package.json | 4 ++-- ghost/custom-theme-settings-service/package.json | 2 +- ghost/data-generator/package.json | 2 +- ghost/domain-events/package.json | 2 +- ghost/donations/package.json | 2 +- ghost/dynamic-routing-events/package.json | 2 +- ghost/email-analytics-provider-mailgun/package.json | 2 +- ghost/email-analytics-service/package.json | 2 +- ghost/email-content-generator/package.json | 2 +- ghost/email-events/package.json | 2 +- ghost/email-service/package.json | 2 +- ghost/email-suppression-list/package.json | 2 +- ghost/event-aware-cache-wrapper/package.json | 2 +- ghost/express-dynamic-redirects/package.json | 2 +- ghost/external-media-inliner/package.json | 2 +- ghost/extract-api-key/package.json | 2 +- ghost/html-to-plaintext/package.json | 2 +- ghost/i18n/package.json | 2 +- ghost/importer-handler-content-files/package.json | 2 +- ghost/importer-revue/package.json | 2 +- ghost/in-memory-repository/package.json | 2 +- ghost/job-manager/package.json | 2 +- ghost/link-redirects/package.json | 2 +- ghost/link-replacer/package.json | 2 +- ghost/link-tracking/package.json | 2 +- ghost/magic-link/package.json | 2 +- ghost/mail-events/package.json | 2 +- ghost/mailgun-client/package.json | 2 +- ghost/member-attribution/package.json | 2 +- ghost/member-events/package.json | 2 +- ghost/members-api/package.json | 2 +- ghost/members-csv/package.json | 2 +- ghost/members-events-service/package.json | 2 +- ghost/members-importer/package.json | 2 +- ghost/members-ssr/package.json | 2 +- ghost/mentions-email-report/package.json | 2 +- ghost/milestones/package.json | 2 +- ghost/minifier/package.json | 2 +- ghost/model-to-domain-event-interceptor/package.json | 2 +- ghost/mw-api-version-mismatch/package.json | 2 +- ghost/mw-cache-control/package.json | 2 +- ghost/mw-error-handler/package.json | 2 +- ghost/mw-session-from-token/package.json | 2 +- ghost/mw-update-user-last-seen/package.json | 2 +- ghost/mw-version-match/package.json | 2 +- ghost/mw-vhost/package.json | 2 +- ghost/nql-filter-expansions/package.json | 2 +- ghost/oembed-service/package.json | 2 +- ghost/offers/package.json | 2 +- ghost/package-json/package.json | 2 +- ghost/payments/package.json | 2 +- ghost/post-events/package.json | 2 +- ghost/post-revisions/package.json | 2 +- ghost/posts-service/package.json | 2 +- ghost/recommendations/package.json | 2 +- ghost/referrers/package.json | 2 +- ghost/security/package.json | 2 +- ghost/session-service/package.json | 2 +- ghost/settings-path-manager/package.json | 2 +- ghost/slack-notifications/package.json | 2 +- ghost/staff-service/package.json | 2 +- ghost/stats-service/package.json | 2 +- ghost/stripe/package.json | 2 +- ghost/tiers/package.json | 2 +- ghost/update-check-service/package.json | 2 +- ghost/verification-trigger/package.json | 2 +- ghost/version-notifications-data-service/package.json | 2 +- ghost/webmentions/package.json | 2 +- 79 files changed, 80 insertions(+), 80 deletions(-) diff --git a/ghost/adapter-cache-memory-ttl/package.json b/ghost/adapter-cache-memory-ttl/package.json index ecad36a4f8..183ba3f44f 100644 --- a/ghost/adapter-cache-memory-ttl/package.json +++ b/ghost/adapter-cache-memory-ttl/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/adapter-cache-redis/package.json b/ghost/adapter-cache-redis/package.json index 5a2c364151..a66511d998 100644 --- a/ghost/adapter-cache-redis/package.json +++ b/ghost/adapter-cache-redis/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --lines 71 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --lines 71 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/adapter-manager/package.json b/ghost/adapter-manager/package.json index 10c5f1e1a7..c885e69b9d 100644 --- a/ghost/adapter-manager/package.json +++ b/ghost/adapter-manager/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/announcement-bar-settings/package.json b/ghost/announcement-bar-settings/package.json index 0df7a77c11..0943f94f7b 100644 --- a/ghost/announcement-bar-settings/package.json +++ b/ghost/announcement-bar-settings/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/api-framework/package.json b/ghost/api-framework/package.json index 2baaf0910a..a635be08c7 100644 --- a/ghost/api-framework/package.json +++ b/ghost/api-framework/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/api-version-compatibility-service/package.json b/ghost/api-version-compatibility-service/package.json index 3c39450c48..b0aeed8144 100644 --- a/ghost/api-version-compatibility-service/package.json +++ b/ghost/api-version-compatibility-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/audience-feedback/package.json b/ghost/audience-feedback/package.json index ef3a8b5e24..3d13341e0d 100644 --- a/ghost/audience-feedback/package.json +++ b/ghost/audience-feedback/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/bookshelf-repository/package.json b/ghost/bookshelf-repository/package.json index e93cb560ec..f9f952f543 100644 --- a/ghost/bookshelf-repository/package.json +++ b/ghost/bookshelf-repository/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/bootstrap-socket/package.json b/ghost/bootstrap-socket/package.json index d39abcd956..f8efd6a9ca 100644 --- a/ghost/bootstrap-socket/package.json +++ b/ghost/bootstrap-socket/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/collections/package.json b/ghost/collections/package.json index 652532a0cd..459362236d 100644 --- a/ghost/collections/package.json +++ b/ghost/collections/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/constants/package.json b/ghost/constants/package.json index 9c5902fd74..4bda45b049 100644 --- a/ghost/constants/package.json +++ b/ghost/constants/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/core/package.json b/ghost/core/package.json index cc60df6061..db938861bb 100644 --- a/ghost/core/package.json +++ b/ghost/core/package.json @@ -24,7 +24,7 @@ "dev": "node --watch index.js", "build": "postcss core/frontend/public/ghost.css --no-map --use cssnano -o core/frontend/public/ghost.min.css", "test": "yarn test:unit", - "test:base": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js", + "test:base": "mocha --reporter dot --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js", "test:single": "yarn test:base --timeout=60000", "test:all": "yarn test:unit && yarn test:integration && yarn test:e2e && yarn lint", "test:debug": "DEBUG=ghost:test* yarn test", @@ -45,7 +45,7 @@ "test:unit:slow": "yarn test:unit --reporter=mocha-slow-test-reporter", "test:int:slow": "yarn test:integration --reporter=mocha-slow-test-reporter", "test:e2e:slow": "yarn test:e2e --reporter=mocha-slow-test-reporter", - "test:reg:slow": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000 --reporter=mocha-slow-test-reporter", + "test:reg:slow": "mocha --reporter dot --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000 --reporter=mocha-slow-test-reporter", "lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js' --cache", "lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js' --cache", "lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js' --cache", diff --git a/ghost/custom-theme-settings-service/package.json b/ghost/custom-theme-settings-service/package.json index 7b4ef23d86..30c065262d 100644 --- a/ghost/custom-theme-settings-service/package.json +++ b/ghost/custom-theme-settings-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/data-generator/package.json b/ghost/data-generator/package.json index 0acef212b7..810ed13eeb 100644 --- a/ghost/data-generator/package.json +++ b/ghost/data-generator/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/domain-events/package.json b/ghost/domain-events/package.json index 45bfd6c822..8eb2900ad0 100644 --- a/ghost/domain-events/package.json +++ b/ghost/domain-events/package.json @@ -8,7 +8,7 @@ "types": "types", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage --100 mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage --100 -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/donations/package.json b/ghost/donations/package.json index 5bff7cb542..e65081381a 100644 --- a/ghost/donations/package.json +++ b/ghost/donations/package.json @@ -11,7 +11,7 @@ "build": "tsc", "build:ts": "yarn build", "prepare": "tsc", - "test:unit": "NODE_ENV=testing c8 --src src --all --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/dynamic-routing-events/package.json b/ghost/dynamic-routing-events/package.json index f74d8ee13d..c60bd8412a 100644 --- a/ghost/dynamic-routing-events/package.json +++ b/ghost/dynamic-routing-events/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-analytics-provider-mailgun/package.json b/ghost/email-analytics-provider-mailgun/package.json index 6aecd92e60..6456e273f6 100644 --- a/ghost/email-analytics-provider-mailgun/package.json +++ b/ghost/email-analytics-provider-mailgun/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage --100 mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage --100 -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-analytics-service/package.json b/ghost/email-analytics-service/package.json index c849108159..7207e9a547 100644 --- a/ghost/email-analytics-service/package.json +++ b/ghost/email-analytics-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-content-generator/package.json b/ghost/email-content-generator/package.json index 0386c38a5c..1288077c62 100644 --- a/ghost/email-content-generator/package.json +++ b/ghost/email-content-generator/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-events/package.json b/ghost/email-events/package.json index a181445afa..9470d38287 100644 --- a/ghost/email-events/package.json +++ b/ghost/email-events/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-service/package.json b/ghost/email-service/package.json index e22169f2e7..4221b35cdc 100644 --- a/ghost/email-service/package.json +++ b/ghost/email-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/email-suppression-list/package.json b/ghost/email-suppression-list/package.json index 15bd5e96c6..82ddf7e61b 100644 --- a/ghost/email-suppression-list/package.json +++ b/ghost/email-suppression-list/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test:unit": "yarn test", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/event-aware-cache-wrapper/package.json b/ghost/event-aware-cache-wrapper/package.json index c99ff5e86b..d207279f5f 100644 --- a/ghost/event-aware-cache-wrapper/package.json +++ b/ghost/event-aware-cache-wrapper/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/express-dynamic-redirects/package.json b/ghost/express-dynamic-redirects/package.json index 139029fd51..bebc441411 100644 --- a/ghost/express-dynamic-redirects/package.json +++ b/ghost/express-dynamic-redirects/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/external-media-inliner/package.json b/ghost/external-media-inliner/package.json index d016dfe443..547448f217 100644 --- a/ghost/external-media-inliner/package.json +++ b/ghost/external-media-inliner/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/extract-api-key/package.json b/ghost/extract-api-key/package.json index 70542e018b..dbcac285a6 100644 --- a/ghost/extract-api-key/package.json +++ b/ghost/extract-api-key/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/html-to-plaintext/package.json b/ghost/html-to-plaintext/package.json index bf2a8b241e..857a799b36 100644 --- a/ghost/html-to-plaintext/package.json +++ b/ghost/html-to-plaintext/package.json @@ -11,7 +11,7 @@ ], "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/i18n/package.json b/ghost/i18n/package.json index 80d390dd68..55127cf87a 100644 --- a/ghost/i18n/package.json +++ b/ghost/i18n/package.json @@ -8,7 +8,7 @@ "types": "./build/i18n.d.ts", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit:base": "NODE_ENV=testing c8 --include index.js --include lib --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test:unit": "yarn test:unit:base && yarn translate", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", diff --git a/ghost/importer-handler-content-files/package.json b/ghost/importer-handler-content-files/package.json index 0fadcad90d..8d01d6bae4 100644 --- a/ghost/importer-handler-content-files/package.json +++ b/ghost/importer-handler-content-files/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/importer-revue/package.json b/ghost/importer-revue/package.json index 46b88ce6b0..858d7276f3 100644 --- a/ghost/importer-revue/package.json +++ b/ghost/importer-revue/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter html --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter html --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/in-memory-repository/package.json b/ghost/in-memory-repository/package.json index 7474450354..5cbbd79fbe 100644 --- a/ghost/in-memory-repository/package.json +++ b/ghost/in-memory-repository/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/job-manager/package.json b/ghost/job-manager/package.json index 6eb7818925..df6385fcdb 100644 --- a/ghost/job-manager/package.json +++ b/ghost/job-manager/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/link-redirects/package.json b/ghost/link-redirects/package.json index 14757ae398..4d3b81ab1c 100644 --- a/ghost/link-redirects/package.json +++ b/ghost/link-redirects/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/link-replacer/package.json b/ghost/link-replacer/package.json index d3290b252d..8566559bf6 100644 --- a/ghost/link-replacer/package.json +++ b/ghost/link-replacer/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/link-tracking/package.json b/ghost/link-tracking/package.json index ef1bd8bac2..102b0a443b 100644 --- a/ghost/link-tracking/package.json +++ b/ghost/link-tracking/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --lines 88 --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --lines 88 --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/magic-link/package.json b/ghost/magic-link/package.json index 7f760f259e..a8f26ccf54 100644 --- a/ghost/magic-link/package.json +++ b/ghost/magic-link/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mail-events/package.json b/ghost/mail-events/package.json index da153b8a63..017da3930d 100644 --- a/ghost/mail-events/package.json +++ b/ghost/mail-events/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/mailgun-client/package.json b/ghost/mailgun-client/package.json index 53a571e7c7..9665f54c93 100644 --- a/ghost/mailgun-client/package.json +++ b/ghost/mailgun-client/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/member-attribution/package.json b/ghost/member-attribution/package.json index e1e19b663f..add5147d70 100644 --- a/ghost/member-attribution/package.json +++ b/ghost/member-attribution/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/member-events/package.json b/ghost/member-events/package.json index 51933b551a..c88b54b080 100644 --- a/ghost/member-events/package.json +++ b/ghost/member-events/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/members-api/package.json b/ghost/members-api/package.json index 537535ffea..ab1aa37426 100644 --- a/ghost/members-api/package.json +++ b/ghost/members-api/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha --reporter dot './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/members-csv/package.json b/ghost/members-csv/package.json index 27bbbb34f3..185da9c4a5 100644 --- a/ghost/members-csv/package.json +++ b/ghost/members-csv/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/members-events-service/package.json b/ghost/members-events-service/package.json index 7d86a8d8b7..3f5af200d9 100644 --- a/ghost/members-events-service/package.json +++ b/ghost/members-events-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/members-importer/package.json b/ghost/members-importer/package.json index 0f74f0f886..9f89aaab07 100644 --- a/ghost/members-importer/package.json +++ b/ghost/members-importer/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/members-ssr/package.json b/ghost/members-ssr/package.json index 23731b85d2..e974d453fa 100644 --- a/ghost/members-ssr/package.json +++ b/ghost/members-ssr/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mentions-email-report/package.json b/ghost/mentions-email-report/package.json index a8c6351b54..37fa322b08 100644 --- a/ghost/mentions-email-report/package.json +++ b/ghost/mentions-email-report/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/milestones/package.json b/ghost/milestones/package.json index 54f7478ba5..81f180017a 100644 --- a/ghost/milestones/package.json +++ b/ghost/milestones/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/minifier/package.json b/ghost/minifier/package.json index ddd158e70f..d1647b4a26 100644 --- a/ghost/minifier/package.json +++ b/ghost/minifier/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/model-to-domain-event-interceptor/package.json b/ghost/model-to-domain-event-interceptor/package.json index 31c7893f8d..961fc9632d 100644 --- a/ghost/model-to-domain-event-interceptor/package.json +++ b/ghost/model-to-domain-event-interceptor/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/mw-api-version-mismatch/package.json b/ghost/mw-api-version-mismatch/package.json index cc65460469..388e5fc71a 100644 --- a/ghost/mw-api-version-mismatch/package.json +++ b/ghost/mw-api-version-mismatch/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-cache-control/package.json b/ghost/mw-cache-control/package.json index 43448e6759..0d726156d0 100644 --- a/ghost/mw-cache-control/package.json +++ b/ghost/mw-cache-control/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-error-handler/package.json b/ghost/mw-error-handler/package.json index 337ae9a009..d9a73965fd 100644 --- a/ghost/mw-error-handler/package.json +++ b/ghost/mw-error-handler/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-session-from-token/package.json b/ghost/mw-session-from-token/package.json index af566a3a0f..b0ebee3561 100644 --- a/ghost/mw-session-from-token/package.json +++ b/ghost/mw-session-from-token/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-update-user-last-seen/package.json b/ghost/mw-update-user-last-seen/package.json index 20860c2280..ffc96e161a 100644 --- a/ghost/mw-update-user-last-seen/package.json +++ b/ghost/mw-update-user-last-seen/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-version-match/package.json b/ghost/mw-version-match/package.json index ddeed8d2dc..840229712a 100644 --- a/ghost/mw-version-match/package.json +++ b/ghost/mw-version-match/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/mw-vhost/package.json b/ghost/mw-vhost/package.json index fbb96bd646..ed896f1258 100644 --- a/ghost/mw-vhost/package.json +++ b/ghost/mw-vhost/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/nql-filter-expansions/package.json b/ghost/nql-filter-expansions/package.json index ffad5f1e4e..1a1f3cfeed 100644 --- a/ghost/nql-filter-expansions/package.json +++ b/ghost/nql-filter-expansions/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/oembed-service/package.json b/ghost/oembed-service/package.json index a7ae37d111..28e94c85ae 100644 --- a/ghost/oembed-service/package.json +++ b/ghost/oembed-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/offers/package.json b/ghost/offers/package.json index 55abbd6f69..ee6585705a 100644 --- a/ghost/offers/package.json +++ b/ghost/offers/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/package-json/package.json b/ghost/package-json/package.json index 68e40441d7..8ba554a483 100644 --- a/ghost/package-json/package.json +++ b/ghost/package-json/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/payments/package.json b/ghost/payments/package.json index 1cb8d87a90..67fe3b200c 100644 --- a/ghost/payments/package.json +++ b/ghost/payments/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/post-events/package.json b/ghost/post-events/package.json index 6c46d580d5..f1c53e8e82 100644 --- a/ghost/post-events/package.json +++ b/ghost/post-events/package.json @@ -10,7 +10,7 @@ "dev": "tsc --watch --preserveWatchOutput --sourceMap", "build": "tsc", "build:ts": "yarn build", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/post-revisions/package.json b/ghost/post-revisions/package.json index 5513b7c143..f605eec553 100644 --- a/ghost/post-revisions/package.json +++ b/ghost/post-revisions/package.json @@ -10,7 +10,7 @@ "build": "tsc", "build:ts": "yarn build", "test:types": "tsc --noEmit", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:unit && yarn test:types", "lint:code": "eslint src/ --ext .ts --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/posts-service/package.json b/ghost/posts-service/package.json index 406ecd7fcd..1be75dcfaa 100644 --- a/ghost/posts-service/package.json +++ b/ghost/posts-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/recommendations/package.json b/ghost/recommendations/package.json index adc8b3500d..2186e2c248 100644 --- a/ghost/recommendations/package.json +++ b/ghost/recommendations/package.json @@ -11,7 +11,7 @@ "build": "tsc", "build:ts": "yarn build", "prepare": "tsc", - "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura mocha -r ts-node/register './test/**/*.test.ts'", + "test:unit": "NODE_ENV=testing c8 --src src --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot -r ts-node/register './test/**/*.test.ts'", "test": "yarn test:types && yarn test:unit", "test:types": "tsc --noEmit", "lint:code": "eslint src/ --ext .ts --cache", diff --git a/ghost/referrers/package.json b/ghost/referrers/package.json index c14d0a955b..a9487f83aa 100644 --- a/ghost/referrers/package.json +++ b/ghost/referrers/package.json @@ -7,7 +7,7 @@ "main": "referrers.json", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint": "yarn lint:test", "lint:test": "eslint -c test/.eslintrc.js test/ --ext .js --cache" diff --git a/ghost/security/package.json b/ghost/security/package.json index 652a975a1f..6ca19bff4a 100644 --- a/ghost/security/package.json +++ b/ghost/security/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/session-service/package.json b/ghost/session-service/package.json index f9ba8f510a..720b00f79c 100644 --- a/ghost/session-service/package.json +++ b/ghost/session-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/settings-path-manager/package.json b/ghost/settings-path-manager/package.json index 12d4e43cc0..eaa2ed0198 100644 --- a/ghost/settings-path-manager/package.json +++ b/ghost/settings-path-manager/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura --check-coverage -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/slack-notifications/package.json b/ghost/slack-notifications/package.json index 648c889cc8..bd617214ce 100644 --- a/ghost/slack-notifications/package.json +++ b/ghost/slack-notifications/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing TZ=UTC c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing TZ=UTC c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/staff-service/package.json b/ghost/staff-service/package.json index ebec507eb5..3348788bb2 100644 --- a/ghost/staff-service/package.json +++ b/ghost/staff-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/stats-service/package.json b/ghost/stats-service/package.json index 05ce176622..49a98b6186 100644 --- a/ghost/stats-service/package.json +++ b/ghost/stats-service/package.json @@ -8,7 +8,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing TZ=UTC c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing TZ=UTC c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/stripe/package.json b/ghost/stripe/package.json index 6160063318..d7a7478454 100644 --- a/ghost/stripe/package.json +++ b/ghost/stripe/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/tiers/package.json b/ghost/tiers/package.json index 17005da73c..f4ea438eef 100644 --- a/ghost/tiers/package.json +++ b/ghost/tiers/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/update-check-service/package.json b/ghost/update-check-service/package.json index 79ab0218c5..e631952448 100644 --- a/ghost/update-check-service/package.json +++ b/ghost/update-check-service/package.json @@ -8,7 +8,7 @@ "exports": "./lib/UpdateCheckService.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/verification-trigger/package.json b/ghost/verification-trigger/package.json index 39aff01702..d3aa0f6c6a 100644 --- a/ghost/verification-trigger/package.json +++ b/ghost/verification-trigger/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/version-notifications-data-service/package.json b/ghost/version-notifications-data-service/package.json index 991c7d232d..478e930a93 100644 --- a/ghost/version-notifications-data-service/package.json +++ b/ghost/version-notifications-data-service/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test", diff --git a/ghost/webmentions/package.json b/ghost/webmentions/package.json index 4d112e481d..e5a8f74885 100644 --- a/ghost/webmentions/package.json +++ b/ghost/webmentions/package.json @@ -7,7 +7,7 @@ "main": "index.js", "scripts": { "dev": "echo \"Implement me!\"", - "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura mocha './test/**/*.test.js'", + "test:unit": "NODE_ENV=testing c8 --all --check-coverage --100 --reporter text --reporter cobertura -- mocha --reporter dot './test/**/*.test.js'", "test": "yarn test:unit", "lint:code": "eslint *.js lib/ --ext .js --cache", "lint": "yarn lint:code && yarn lint:test",