diff --git a/package.json b/package.json index 057b182..17afd65 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,10 @@ "typeorm:migrate:library": "typeorm migration:run -c library", "watch": "gulp build --watch --dev", "build": "gulp build", - "test:fast": "nyc mocha --grep @slow --invert", - "test": "nyc mocha", + "test:fast": "mocha --grep @slow --invert", + "test": "mocha", + "coverage:fast": "nyc npm run test:fast", + "coverage": "nyc npm run test", "lint": "npm run eslint && npm run tslint", "eslint-check": "eslint --print-config gulpfile.js | eslint-config-prettier-check", "eslint": "eslint .", @@ -25,8 +27,8 @@ "forge:start": "electron-forge start", "forge:make": "electron-forge --platform win32 --arch x64 make", "forge": "npm run build && npm run forge:make", - "precommit": "npm run prettier && npm run eslint-check && npm run tslint-check && npm run lint && npm run test:fast", - "prepush": "npm run test" + "precommit": "npm run prettier && npm run eslint-check && npm run tslint-check && npm run lint && npm run coverage:fast", + "prepush": "npm run coverage" }, "dependencies": { "jsdom": "^15.1.1",