Skip to content

Commit

Permalink
#140 Update test script
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvansson committed Apr 29, 2021
1 parent e54565b commit 1d5773e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ jobs:
-in google-auth.json.cipher \
-out google-auth.json \
-k $KEY
- run: mkdir ~/junit
# run tests
- run:
name: Run Unitests
command: MOCHA_FILE=~/junit/test-results.xml ./node_modules/.bin/mocha test --recursive --reporter mocha-junit-reporter --exit
command: MOCHA_FILE=~/junit/test-results.xml npm test
when: always
- store_test_results:
path: ~/junit
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,6 @@ config/env/production.js
*.njsproj
*.njsproj.*
*.sln
/.vs
/.vs

test-results.xml
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"scripts": {
"dev": "nodemon app.js",
"start": "node app.js",
"test": "NODE_ENV=test swagger project test",
"test": "NODE_ENV=test mocha test --recursive --reporter mocha-junit-reporter --exit",
"precommit": "lint-staged",
"snyk-protect": "snyk protect",
"prepare": "npm run snyk-protect"
Expand Down

0 comments on commit 1d5773e

Please sign in to comment.