From f0e394086812b7da8430a66b88fcb6c0ffd3e7e2 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Thu, 6 May 2021 11:02:29 +0530 Subject: [PATCH] javascript test coverage --- .github/workflows/linux.yml | 4 ++-- jest.config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 8c51918b..149e9dc7 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -56,7 +56,7 @@ jobs: run: yarn build - name: Run the tests - run: yarn test -- --coverage + run: yarn test - name: Install ${{ matrix.version }} uses: actions-rs/toolchain@v1 @@ -109,7 +109,7 @@ jobs: if: matrix.version == 'stable' && (github.ref == 'refs/heads/master' || github.event_name == 'pull_request') uses: codecov/codecov-action@v1 with: - file: cobertura.xml + files: cobertura.xml, ./coverage/clover.xml - name: generate documentation if: matrix.version == 'stable' && (github.repository == 'mCaptcha/guard') diff --git a/jest.config.ts b/jest.config.ts index 1da64139..3e9459f2 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -17,7 +17,7 @@ export default { clearMocks: true, // Indicates whether the coverage information should be collected while executing the test - // collectCoverage: false, + collectCoverage: true, // An array of glob patterns indicating a set of files for which coverage information should be collected // collectCoverageFrom: undefined,