diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d0c3e1a9b7..d04c4f9ff0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -227,6 +227,13 @@ jobs: - name: test unit run: yarn test:unit --coverage + + - name: codecov + uses: codecov/codecov-action@v1 + if: matrix.os == 'ubuntu-latest' && matrix.node == '10' + with: + token: ${{ secrets.CODECOV_TOKEN }} + flags: unittests needs: build test-e2e: diff --git a/jest.config.js b/jest.config.js index c6daa27618..68e437d910 100644 --- a/jest.config.js +++ b/jest.config.js @@ -55,10 +55,5 @@ module.exports = { moduleNameMapper: { [`@nuxt/(${corePackages.join('|')})(/?.*)$`]: '/packages/$1/src/$2' - }, - - reporters: [ - 'default', - ['jest-junit', { outputDirectory: 'reports/junit' }] - ] + } } diff --git a/package.json b/package.json index b94a8cf6d5..e6ba7938d0 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "improved-yarn-audit": "^1.0.1", "is-wsl": "^2.1.1", "jest": "^24.9.0", - "jest-junit": "^10.0.0", "jsdom": "^15.2.1", "klaw-sync": "^6.0.0", "lerna": "^3.20.2", diff --git a/yarn.lock b/yarn.lock index 60b1d33a17..1dd3ba09de 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6971,17 +6971,6 @@ jest-jasmine2@^24.9.0: pretty-format "^24.9.0" throat "^4.0.0" -jest-junit@^10.0.0: - version "10.0.0" - resolved "https://registry.npmjs.org/jest-junit/-/jest-junit-10.0.0.tgz#c94b91c24920a327c9d2a075e897b2dba4af494b" - integrity sha512-dbOVRyxHprdSpwSAR9/YshLwmnwf+RSl5hf0kCGlhAcEeZY9aRqo4oNmaT0tLC16Zy9D0zekDjWkjHGjXlglaQ== - dependencies: - jest-validate "^24.9.0" - mkdirp "^0.5.1" - strip-ansi "^5.2.0" - uuid "^3.3.3" - xml "^1.0.1" - jest-leak-detector@^24.9.0: version "24.9.0" resolved "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-24.9.0.tgz#b665dea7c77100c5c4f7dfcb153b65cf07dcf96a" @@ -12149,7 +12138,7 @@ utils-merge@1.0.1: resolved "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM= -uuid@^3.0.1, uuid@^3.3.2, uuid@^3.3.3: +uuid@^3.0.1, uuid@^3.3.2: version "3.3.3" resolved "https://registry.npmjs.org/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== @@ -12667,11 +12656,6 @@ xml-name-validator@^3.0.0: resolved "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== -xml@^1.0.1: - version "1.0.1" - resolved "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz#78ba72020029c5bc87b8a81a3cfcd74b4a2fc1e5" - integrity sha1-eLpyAgApxbyHuKgaPPzXS0ovweU= - xmlchars@^2.1.1: version "2.2.0" resolved "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb"