From 7b3d0982276ad8ce56282112ebed7acedbfa7481 Mon Sep 17 00:00:00 2001 From: William Correa Date: Mon, 25 Mar 2019 02:15:15 -0300 Subject: [PATCH] [feature] Run test --- .gitignore | 1 + .travis.yml | 3 +++ package.json | 4 ++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 109341c..e685b8b 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ yarn-error.log* /.bin/* !*.gitkeep +test/jest/coverage diff --git a/.travis.yml b/.travis.yml index 6df574e..985da73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,9 @@ install: - npm install script: + - npm test + +after_success: - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis.deploy.sh; fi' deploy: diff --git a/package.json b/package.json index 7865c89..9d45900 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "private": true, "scripts": { "lint": "eslint --ext .js,.vue src", - "test": "echo \"No test specified\" && exit 0", + "test": "quasar run @quasar/testing test --unit=jest", "test:e2e": "cypress open", "test:e2e:CI": "cypress run", "serve:test:lighthouse": "quasar serve test/lighthouse/reports/ --port 8789", @@ -55,4 +55,4 @@ "resolutions": { "ajv": "6.8.1" } -} \ No newline at end of file +}