From db381cad920b6b9f517c347025f1e116630c8cca Mon Sep 17 00:00:00 2001 From: Faisal Salman Date: Fri, 19 Mar 2021 19:16:36 +0700 Subject: [PATCH] Change mocha reporter for CI --- .github/run-test.yml | 2 +- .travis.yml | 2 ++ package.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/run-test.yml b/.github/run-test.yml index 4c0eab2..ab126d2 100644 --- a/.github/run-test.yml +++ b/.github/run-test.yml @@ -14,4 +14,4 @@ jobs: - name: Run the test run: | npm install - npm test + npm run test-ci diff --git a/.travis.yml b/.travis.yml index 7e3cc8e..0f87fc3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,3 +14,5 @@ cache: - node_modules sudo: false + +script: npm run test-ci \ No newline at end of file diff --git a/package.json b/package.json index aa7b064..8035f40 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,7 @@ "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", "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", "version": "node ./node_modules/verup 0" },