From 1d5773e753556d805d9abde040f2030a8759d243 Mon Sep 17 00:00:00 2001 From: Simon Richard Date: Wed, 28 Apr 2021 23:44:49 -0400 Subject: [PATCH] #140 Update test script --- .circleci/config.yml | 3 +-- .gitignore | 4 +++- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6eb27031..fe24dbd7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 diff --git a/.gitignore b/.gitignore index 2fb55062..c83d1ec0 100644 --- a/.gitignore +++ b/.gitignore @@ -44,4 +44,6 @@ config/env/production.js *.njsproj *.njsproj.* *.sln -/.vs \ No newline at end of file +/.vs + +test-results.xml \ No newline at end of file diff --git a/package.json b/package.json index 8bcae4a3..cf5fcf11 100644 --- a/package.json +++ b/package.json @@ -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"