From 111d1c82710fc710bf080a326b103ae6115aa180 Mon Sep 17 00:00:00 2001 From: Chris Cowell Date: Wed, 13 Feb 2019 14:02:00 -0700 Subject: [PATCH 1/2] Enabling process listeners for uncaught exceptions (#301) Enable process listeners for uncaught exceptions. Root issue was fixed at https://github.com/ethereum/solc-js/pull/85 From eb95f9d4088c42e1b88f08cb5171a98064727eba Mon Sep 17 00:00:00 2001 From: Chris Cowell Date: Wed, 13 Feb 2019 14:04:07 -0700 Subject: [PATCH 2/2] Remove extra test run from coverall support (#299) * Attempting to remove extra test run from coverage report * Renamed test-coverage to local-coverage for run test coverage locally * Removed `npm run local-coverage' as it is a duplicate of `npm run _mocha` Ignoring .nyc_output * Created a separate nyc_mocha tag for devops Unchanging _mocha for local development usage (nyc added ~7 seconds to the run) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 51be6e30f5..27ec2640b0 100644 --- a/package.json +++ b/package.json @@ -10,17 +10,17 @@ }, "scripts": { "_mocha": "mocha --check-leaks --recursive --globals _scratch,sanitizedData", + "nyc_mocha": "nyc mocha --check-leaks --recursive --globals _scratch,sanitizedData", "_lint": "eslint --ignore-path .gitignore .", "build": "webpack-cli --config ./webpack/node/core.webpack.config.js", "build-web": "webpack-cli --config ./webpack/web-experimental/core.webpack.config.js", "format": "prettier --write \"{lib,perf,test}/**/*.js\" && eslint --fix --ignore-path .gitignore .", "prepublishOnly": "npm run test && npm run build && npm run test-build && mv npm-shrinkwrap.json npm-shrinkwrap.json.bak && npm prune --only=prod && npm shrinkwrap", "postpublish": "rm npm-shrinkwrap.json && mv npm-shrinkwrap.json.bak npm-shrinkwrap.json && npm ci", - "test": "npm run _lint && npm run _mocha", + "test": "npm run _lint && npm run nyc_mocha", "test-build": "cross-env TEST_BUILD=node npm run _mocha", "test-web-experimental": "cross-env TEST_BUILD=web-experimental npm run _mocha", - "test-coverage": "nyc mocha --check-leaks --recursive --globals _scratch,sanitizedData", - "coverage": "npm run test-coverage && nyc report --reporter=text-lcov | coveralls" + "coverage": "nyc report --reporter=text-lcov | coveralls" }, "dependencies": { "abstract-leveldown": "3.0.0",