diff --git a/.gitignore b/.gitignore index cfd49be1..0af948aa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules test-fixtures -coverage *.bak *.log +.nyc_output +package-lock.json diff --git a/.travis.yml b/.travis.yml index b7ec7d40..0cbe9fc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ os: - linux - osx script: - - npm run ci-test + - npm run test after_script: - npm run coveralls sudo: false diff --git a/package.json b/package.json index 8a63d35a..6901b03b 100644 --- a/package.json +++ b/package.json @@ -22,9 +22,8 @@ }, "license": "MIT", "scripts": { - "test": "istanbul test node_modules/mocha/bin/_mocha", - "ci-test": "istanbul cover _mocha", - "coveralls": "cat ./coverage/lcov.info | coveralls" + "test": "nyc mocha --exit", + "coveralls": "nyc report --reporter=text-lcov | coveralls" }, "files": [ "index.js", @@ -32,10 +31,10 @@ ], "devDependencies": { "chai": "^3.2.0", - "coveralls": "^2.11.2", + "coveralls": "^3.0.1", "graceful-fs": "4.1.4", - "istanbul": "^0.3.20", - "mocha": "^3.0.0", + "mocha": "^5.2.0", + "nyc": "^11.8.0", "rimraf": "^2.4.3", "sinon": "^1.10.3", "sinon-chai": "^2.6.0"