From c7f45f558060fd1a62c5e3af1f5684e1b1b7a87b Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 26 Aug 2021 14:31:40 +0200 Subject: [PATCH] Renamed `coverage:unit` command to `cov:unit` no issue - this is slightly quicker to type and cleaner to read --- .github/workflows/test.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 88bf7ccf93..ea78083477 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -114,7 +114,7 @@ jobs: database__connection__filename: /dev/shm/ghost-test.db - name: Unit test coverage - run: yarn coverage:unit + run: yarn cov:unit - uses: daniellockyer/action-slack-build@master if: failure() && github.event_name == 'push' && github.ref == 'refs/heads/main' diff --git a/package.json b/package.json index f7ef49c561..5e0409192d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "test:acceptance": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/api-acceptance' './test/frontend-acceptance' --timeout=10000", "test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000", "test:slow": "yarn test:unit --reporter=mocha-slow-test-reporter && yarn test:acceptance --reporter=mocha-slow-test-reporter", - "coverage:unit": "c8 report --all -n 'core/{*.js,frontend,server,shared}' --reporter text --reporter html", + "cov:unit": "c8 report --all -n 'core/{*.js,frontend,server,shared}' --reporter text --reporter html", "lint:server": "eslint --ignore-path .eslintignore 'core/server/**/*.js' 'core/*.js' '*.js'", "lint:shared": "eslint --ignore-path .eslintignore 'core/shared/**/*.js'", "lint:frontend": "eslint --ignore-path .eslintignore 'core/frontend/**/*.js'",