From ad2dc3f750d468ff3251feabd924725cee274100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Kristensson=20Alfsson?= Date: Fri, 12 Jun 2020 14:22:14 +0200 Subject: [PATCH] fix: Debugging Still no generated files --- .github/workflows/nodejs.yml | 2 +- .gitignore | 3 ++- jest.config.js | 2 +- package.json | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c5907ed4..0969e8b3 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -47,7 +47,7 @@ jobs: uses: codecov/codecov-action@v1 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - file: ./coverage/coverage-final.json # optional + file: ./coverag*/coverage-final.json # optional fail_ci_if_error: true # optional (default = false) - name: Build PWA distribution for production run: | diff --git a/.gitignore b/.gitignore index 2cedd56e..9ea5386e 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,5 @@ cypress/screenshots/ # Test coverage reports .nyc_output/ -coverage/ \ No newline at end of file +coverage/ +coverage-jest/ \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 318039de..a6caabd3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -13,7 +13,7 @@ module.exports = { '.*\\.vue$': 'vue-jest' }, collectCoverage: true, - coverageDirectory: "./coverage/jest", + coverageDirectory: "./coverage-jest", coverageReporters: ["json"], collectCoverageFrom: [ '/**/*.vue', diff --git a/package.json b/package.json index 639b2f78..99254c34 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", - "codecov": "codecov -f coverage/coverage-final.json && codecov -f coverage/jest/coverage-final.json", + "codecov": "codecov -f coverage/coverage-final.json && codecov -f coverage-jest/coverage-final.json", "test:unit": "jest", "test:e2e": "npx cypress run", "test": "npm run test:unit && npm run test:e2e"