Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
feat: add a coverage report by using coveralls with travis
Browse files Browse the repository at this point in the history
  • Loading branch information
dcyou committed Sep 16, 2019
1 parent 4d52259 commit 259811e
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 31 deletions.
1 change: 0 additions & 1 deletion .coveralls.yml

This file was deleted.

1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -13,6 +13,7 @@ branches:
install:
- npm install
- npm run generate
- npm run testtravis

script:
- echo "Skipping tests"
Expand Down
1 change: 1 addition & 0 deletions jest.config.js
Expand Up @@ -16,5 +16,6 @@ module.exports = {
"<rootDir>/components/**/*.vue",
"<rootDir>/pages/**/*.vue"
],
coverageReporters: ["text-lcov"],
snapshotSerializers: ["<rootDir>/node_modules/jest-serializer-vue"]
}
89 changes: 59 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -8,6 +8,7 @@
"dev": "nuxt",
"start": "nuxt start",
"test": "jest",
"testtravis": "jest | coveralls",
"build": "DEPLOY_ENV=GH_PAGES nuxt build",
"generate": "DEPLOY_ENV=GH_PAGES nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
Expand All @@ -24,6 +25,7 @@
"@vue/test-utils": "^1.0.0-beta.27",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.1.0",
"coveralls": "^3.0.6",
"eslint": "^6.3.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^6.2.0",
Expand Down

0 comments on commit 259811e

Please sign in to comment.