diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0728551f..d45abd26 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: ArtiomTr/jest-coverage-report-action@v2.1.3 with: - coverage-file: ./test_reports/report.json + coverage-file: ./coverage/coverage-final.json + base-coverage-file: ./coverage/report.json test-script: npm test threshold: 90 diff --git a/jest.config.ts b/jest.config.ts index 7c631d83..fabb3958 100644 --- a/jest.config.ts +++ b/jest.config.ts @@ -1,7 +1,8 @@ const config = { preset: 'ts-jest', testEnvironment: 'node', - testPathIgnorePatterns: ['/node_modules/', '/dist/'] + testPathIgnorePatterns: ['/node_modules/', '/dist/'], + coverageDirectory: 'coverage', }; export default config