Skip to content

Commit 9f2b981

Browse files
authored
Fix integration test coverage upload to Codecov (#426)
## Problem The integration-tests flag in `codecov.yml` was incorrectly configured to look for coverage in `tests/**` paths, but Jest collects coverage from `src/**` files (as specified in `jest.config.js`). This caused integration test coverage to not be properly tracked by Codecov. ## Root Cause - Jest's `collectCoverageFrom` config specifies `src/**` - Integration tests in `tests/**` exercise application code in `src/**` - Test files (`**/*.test.ts`) are explicitly ignored in codecov config - The mismatch meant coverage data wasn't associated with the `integration-tests` flag ## Solution Updated the `integration-tests` flag to cover `src/**` paths, matching the actual coverage data generated by Jest. Both unit tests and integration tests now correctly point to `src/**` since both generate coverage for source code, just through different test suites. ## Testing This PR will verify that integration test coverage is properly uploaded to Codecov when CI runs.
1 parent 285d160 commit 9f2b981

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ flags:
3333
carryforward: false
3434
integration-tests:
3535
paths:
36-
- tests/**
36+
- src/**
3737
carryforward: false
3838

3939
# Ignore common non-source paths

0 commit comments

Comments
 (0)