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'], };