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'",