diff --git a/package.json b/package.json index 853002048..fbf0e41bd 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "nyc": "^12.0.2", "json-loader": "^0.5.7", "lint-staged": "^7.2.0", - "mocha": "^3.5.3", + "mocha": "^5.2.0", "mock-fs": "^4.5.0", "mssql": "^4.1.0", "mysql": "^2.15.0", @@ -78,17 +78,17 @@ "precommit": "lint-staged", "format": "prettier --write \"{src,bin,scripts,test}/**/*.js\"", "build": "npm run babel", - "debug_test": "node --inspect-brk ./node_modules/.bin/_mocha -t 0 test/index.js", + "debug_test": "node --inspect-brk ./node_modules/.bin/_mocha -- --exit -t 0 test/index.js", "babel": "rimraf ./lib && babel src --out-dir lib --copy-files", "coveralls": "nyc report --reporter=text-lcov | coveralls", "dev": "rimraf ./lib && babel -w src --out-dir lib --copy-files", "lint": "eslint src/**", - "plaintest": "mocha -t 10000 -b -R spec test/index.js && npm run tape", + "plaintest": "mocha --exit -t 10000 -b -R spec test/index.js && npm run tape", "prepublish": "npm run babel", "pre_test": "npm run lint", "tape": "node test/tape/index.js | tap-spec", "debug_tape": "node --inspect-brk test/tape/index.js", - "test": "npm run pre_test && nyc mocha --check-leaks -t 10000 -R spec test/index.js && npm run tape", + "test": "npm run pre_test && nyc mocha --exit --check-leaks -t 10000 -R spec test/index.js && npm run tape", "oracledb:test": "docker rmi -f --no-prune knex-test-oracledb && docker build -f scripts/oracle-tests-Dockerfile --tag knex-test-oracledb . && docker run --rm -i -t -e KNEX_TEST_TIMEOUT=$KNEX_TEST_TIMEOUT -e NODE_VER=$NODE_VER knex-test-oracledb", "mssql:init": "docker-compose -f scripts/mssql-docker-compose.yml up --no-start && docker-compose -f scripts/mssql-docker-compose.yml start", "postmssql:init": "node scripts/wait-for-mssql-server.js && npm run mssql:logs || (npm run mssql:logs;false)",