Skip to content

Commit

Permalink
Add test:unit script (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-black authored Jan 7, 2022
1 parent ef36a99 commit a560bf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
key: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-build-${{env.INSTALL_CACHE_NAME}}-
- name: Testing
run: npm run test:unit:2 && npm run test:unit:3
run: npm run test:unit
- name: Sending to Code Climate
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build:prod": "npm run use-vue:2 && cross-env NODE_ENV=production npm run build",
"lint": "vue-cli-service lint --max-warnings 0",
"lint:ci": "npm run lint -- --no-fix",
"test:unit": "npm run test:unit:2 && npm run test:unit:3",
"test:unit:2": "npm run use-vue:2 && vue-cli-service test:unit",
"test:unit:3": "npm run use-vue:3 && vue-cli-service test:unit",
"use-vue:2": "node scripts/swap-vue.js 2 && vue-demi-switch 2",
Expand Down

0 comments on commit a560bf4

Please sign in to comment.