From 224b6b065ac7d14a53564a475692a80e230e22ce Mon Sep 17 00:00:00 2001 From: gtktsc Date: Mon, 18 Sep 2023 15:18:56 +0200 Subject: [PATCH] ascii-50: change codecov action --fix --- .github/workflows/codecov.yaml | 2 ++ jest.config.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index 39d166e..3d8f9db 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -22,6 +22,8 @@ jobs: node-version: '18.x' - name: Install dependencies run: yarn --frozen-lockfile + - name: Run tests and collect coverage + run: yarn test - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 env: diff --git a/jest.config.js b/jest.config.js index 41ade65..1a677a7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -3,4 +3,6 @@ module.exports = { roots: ['/src'], preset: 'ts-jest', testEnvironment: 'node', + collectCoverage: true, + coverageReporters: ['text', 'cobertura'], };