0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Renamed coverage:unit command to cov:unit

no issue

- this is slightly quicker to type and cleaner to read
This commit is contained in:
Daniel Lockyer 2021-08-26 14:31:40 +02:00
parent 070a6ac13c
commit c7f45f5580
2 changed files with 2 additions and 2 deletions

View file

@ -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'

View file

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