diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 44578e04e..ca7e19793 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,6 @@ lint-sass: jest: stage: test script: yarn test:coverage - coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ only: changes: - "**/*.js" @@ -57,6 +56,12 @@ jest: - "jest.config.js" - "package.json" - "yarn.lock" + coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/ + artifacts: + reports: + coverage_report: + coverage_format: cobertura + path: .coverage/cobertura-coverage.xml nginx-test: stage: test diff --git a/jest.config.js b/jest.config.js index 8796e5595..aa0c7445c 100644 --- a/jest.config.js +++ b/jest.config.js @@ -27,7 +27,7 @@ module.exports = { '!app/soapbox/jest/test-helpers.ts', ], 'coverageDirectory': '/.coverage/', - 'coverageReporters': ['html', 'text', 'text-summary', 'cobertura'], + 'coverageReporters': ['cobertura'], 'moduleDirectories': [ '/node_modules', '/app',