Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
🔧 Use pre v4 Mocha behaviour to exit process
Browse files Browse the repository at this point in the history
  • Loading branch information
st3v3nhunt committed Oct 9, 2017
1 parent 89a95c3 commit 0b5a0e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "app-start.js",
"scripts": {
"coverage-check": "istanbul check-coverage --config .istanbul.yml",
"coverage-generate": "yarn istanbul -- cover _mocha -- --recursive",
"coverage-generate": "yarn istanbul -- cover _mocha -- --exit --recursive",
"coverage-upload": "cat ./coverage/lcov.info | coveralls",
"git-hook": "yarn lint && yarn coverage-generate && yarn coverage-check",
"istanbul": "NODE_ENV=test istanbul",
Expand All @@ -15,7 +15,7 @@
"prepush": "yarn git-hook && yarn snyk test",
"start": "node app-start.js",
"start-watch": "nodemon app-start.js | ./node_modules/bunyan/bin/bunyan",
"test": "NODE_ENV=test mocha --recursive test",
"test": "NODE_ENV=test mocha --exit --recursive test",
"test-ci": "yarn git-hook && yarn coverage-upload",
"test-watch": "yarn test -- --watch --reporter min"
},
Expand All @@ -36,6 +36,7 @@
"chai": "^4.1.2",
"chai-http": "^3.0.0",
"coveralls": "^3.0.0",
"destroy": "^1.0.4",
"eslint": "^4.6.1",
"eslint-config-airbnb-base": "^12.0.0",
"eslint-config-nhsuk": "^0.6.0",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ depd@1.1.1, depd@~1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.1.tgz#5783b4e1c459f06fa5ca27f991f3d06e7a310359"

destroy@~1.0.4:
destroy@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80"

Expand Down Expand Up @@ -2378,7 +2378,7 @@ mime-types@^2.1.10, mime-types@^2.1.12, mime-types@~2.1.15, mime-types@~2.1.16,
dependencies:
mime-db "~1.30.0"

mime@1.4.1, mime@^1.3.4:
mime@^1.3.4:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"

Expand Down

0 comments on commit 0b5a0e0

Please sign in to comment.