Skip to content

Commit 781d55b

Browse files
committed
build: use deciated script for unit testing in travis
1 parent d8b5269 commit 781d55b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ script:
1313
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ];
1414
then npm run test-travis;
1515
else
16-
npm run test-unit;
16+
npm run test-unit-travis;
1717
fi
1818
- sh scripts/typedoc/generate_typedoc.sh
1919
after_success:

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@
118118
"prepublishOnly": "npm run build",
119119
"test-integration": "mocha test/integration",
120120
"test-unit": "jest test/unit/",
121+
"test-unit-travis": "jest --silent --runInBand test/unit/",
121122
"test": "npm run test-unit && npm run test-integration && nyc report --reporter=html",
122-
"test-travis": "jest --silent --runInBand test/unit/ && nyc mocha test/integration/ --grep @slow --invert && nyc report --reporter=html",
123+
"test-travis": "npm run test-unit-travis && nyc mocha test/integration/ --grep @slow --invert && nyc report --reporter=html",
123124
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && ./node_modules/.bin/codecov",
124125
"watch-doc": "nodemon --watch ./ --ext js,tmpl,json --ignore dist/ --ignore doc/ --ignore test/ --ignore examples/ --exec npm run doc",
125126
"watch": "npm run test-unit -- --watch",

0 commit comments

Comments
 (0)