Raise Codecov patch coverage for config loader fallback paths#31
Merged
night-slayer18 merged 4 commits intomainfrom Mar 23, 2026
Merged
Raise Codecov patch coverage for config loader fallback paths#31night-slayer18 merged 4 commits intomainfrom
night-slayer18 merged 4 commits intomainfrom
Conversation
✅ Deploy Preview for autodocshq ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-authored-by: night-slayer18 <83979018+night-slayer18@users.noreply.github.com> Agent-Logs-Url: https://github.com/OpenSyntaxHQ/autodocs/sessions/f018fbba-31c9-4748-8396-6f1f1c90265c
Co-authored-by: night-slayer18 <83979018+night-slayer18@users.noreply.github.com> Agent-Logs-Url: https://github.com/OpenSyntaxHQ/autodocs/sessions/f018fbba-31c9-4748-8396-6f1f1c90265c
Co-authored-by: night-slayer18 <83979018+night-slayer18@users.noreply.github.com> Agent-Logs-Url: https://github.com/OpenSyntaxHQ/autodocs/sessions/f018fbba-31c9-4748-8396-6f1f1c90265c
Copilot
AI
changed the title
[WIP] Fix Codecov coverage threshold failure
Raise Codecov patch coverage for config loader fallback paths
Mar 23, 2026
|
🚀 Deployed on https://pr-31--autodocshq.netlify.app |
Preview DeploymentYour preview is ready. URL: https://pr-31--autodocshq.netlify.app Deployed from commit bb797dc |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codecov patch failed because recently changed branches in
packages/cli/src/config/loader.tswere not exercised by existing tests (codecov/patchreported 33.33% on the diff). This PR increases patch coverage by adding focused tests for the explicit-path and fallback code paths that were previously uncovered.Coverage gap addressed in
config-loadertestspackages/cli/tests/config-loader.test.tsto cover:autodocs.config.ts)cosmiconfigreturnsnull(JSON + JS paths)Failed to load config: ...)Fallback/error branches tested without production code changes
jest.isolateModulesAsync+jest.doMock('cosmiconfig', ...)to force loader fallback branches deterministically.Cross-platform test hardening
'/tmp'usage in error-path test withcreateTempDir()to avoid platform-specific assumptions.💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.