Change mocha reporter for CI

This commit is contained in:
Faisal Salman 2021-03-19 19:16:36 +07:00
parent bb16473fac
commit db381cad92
3 changed files with 4 additions and 1 deletions

View File

@ -14,4 +14,4 @@ jobs:
- name: Run the test - name: Run the test
run: | run: |
npm install npm install
npm test npm run test-ci

View File

@ -14,3 +14,5 @@ cache:
- node_modules - node_modules
sudo: false sudo: false
script: npm run test-ci

View File

@ -101,6 +101,7 @@
"scripts": { "scripts": {
"build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/UAParser\\.js/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/UAParser\\.js/' --compress --mangle", "build": "uglifyjs src/ua-parser.js -o dist/ua-parser.min.js --comments '/UAParser\\.js/' && uglifyjs src/ua-parser.js -o dist/ua-parser.pack.js --comments '/UAParser\\.js/' --compress --mangle",
"test": "jshint src/ua-parser.js && mocha -R nyan test/test.js", "test": "jshint src/ua-parser.js && mocha -R nyan test/test.js",
"test-ci": "jshint src/ua-parser.js && mocha -R spec test/test.js",
"verup": "node ./node_modules/verup", "verup": "node ./node_modules/verup",
"version": "node ./node_modules/verup 0" "version": "node ./node_modules/verup 0"
}, },