diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 161557d..06dccc2 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,3 +16,7 @@ jobs: run: "yarn install" - name: Jest run: "yarn run test" + - name: Upload to codecov + uses: codecov/codecov-action@v3 + with: + flags: unittests diff --git a/package.json b/package.json index 9923b6b..1b0716d 100644 --- a/package.json +++ b/package.json @@ -118,6 +118,11 @@ "\\.(css|less|svg)+$": "identity-obj-proxy", "^\\./IndexedDBWorker\\?worker$": "/test/mocks/workerMock.ts", "^\\./olm$": "/test/mocks/olmMock.ts" - } + }, + "collectCoverage": true, + "coverageReporters": [ + "text", + "cobertura" + ] } }