Skip to content

Commit

Permalink
chore: computing global coverage for post
Browse files Browse the repository at this point in the history
  • Loading branch information
JKratus committed Mar 11, 2022
1 parent 9016390 commit 9b3a385
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,7 @@
"start:localdb": "node app.js $@ --mongoDbDatabase openwhyd_test --mongoDbHost localhost --mongoDbPort 27117",
"test-reset": "node test/reset-test-db.js",
"test:integration": "npx mocha test/integration/*.js --serial --exit",
"test:integration:legacy-post": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/integration/legacy.post.api.tests.js $@",
"test:integration:legacy-post:cov": "rm -rf .nyc_output coverage && COVERAGE=true npm run test:integration:legacy-post -- --serial --timeout 10000 && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:integration:post": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/integration/*post.api.tests.js $@",
"test:integration:post:cov": "rm -rf .nyx_output coverage && COVERAGE=true npm run test:integration:post -- --serial --timeout 10000 && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:unit": "npx mocha test/unit/*.js --exit",
"test:approval": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/approval/approval.tests.js $@",
"test:approval:coverage": "rm -rf .nyc_output coverage && COVERAGE=true npm run test:approval -- --serial --timeout 10000 $@ && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:cypress:dev": "node_modules/.bin/cypress open",
"test:cypress": "node_modules/.bin/cypress run",
"test": ". ./env-vars-testing.sh && npm run test:unit && npm run test:integration && npm run test:cypress",
Expand All @@ -37,7 +31,14 @@
"lint:typescript": "npx tsc --noEmit",
"lint:format": "prettier . --write",
"lint:fix": "eslint . --fix",
"lint": "eslint ."
"lint": "eslint .",
"test:integration:legacy-post": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/integration/legacy.post.api.tests.js $@",
"test:integration:legacy-post:coverage": "rm -rf .nyc_output coverage && COVERAGE=true npm run test:integration:legacy-post -- --serial --timeout 10000 && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:integration:post": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/integration/*post.api.tests.js $@",
"test:integration:post:coverage": "rm -rf .nyx_output coverage && COVERAGE=true npm run test:integration:post -- --serial --timeout 10000 && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:approval": "START_WITH_ENV_FILE='./env-vars-testing.conf' mocha test/approval/approval.tests.js $@",
"test:approval:coverage": "rm -rf .nyc_output coverage && COVERAGE=true npm run test:approval -- --serial --timeout 10000 $@ && npx nyc report --reporter=lcov && npx nyc report | grep post",
"test:post:coverage": "rm -rf .nyc_output coverage && COVERAGE=true npm run test:approval -- --serial --timeout 10000 && COVERAGE=true npm run test:integration:post -- --serial --timeout 10000 && npx nyc report --reporter=lcov && npx nyc report | grep post"
},
"directories": {
"src": "./app",
Expand Down

0 comments on commit 9b3a385

Please # to comment.