diff --git a/.travis.yml b/.travis.yml index cb1a39f939..e84682f2da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ install: - npm install -g codecov script: - npm run lint - - npm test + - npm run test.coverage - npm run style - npm run build - npm run ts-node -- ./demo/demo1.ts @@ -49,7 +49,6 @@ after_success: - npm run typedoc - echo "docx.js.org" > docs/.nojekyll - echo "docx.js.org" > docs/CNAME - - npm run coverage - codecov deploy: provider: pages diff --git a/package.json b/package.json index db5c6fec62..32fdc7a467 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "pretest": "rimraf ./build", "test": "mocha-webpack \"src/**/*.ts\"", + "test.coverage": "nyc npm test", "test.watch": "npm test -- --watch", "prepublishOnly": "npm run build", "lint": "tslint --project .", @@ -17,8 +18,7 @@ "style": "prettier -l \"src/**/*.ts\"", "style.fix": "npm run style -- --write", "fix-types": "node types-absolute-fixer.js", - "ts-node": "ts-node", - "coverage": "nyc report" + "ts-node": "ts-node" }, "pre-commit": [ "style",