Repository navigation
test: cover stale issues governance regression - #356
Open
vianmangal wants to merge 1 commit into
Open
vianmangal wants to merge 1 commit into
vianmangal wants to merge 1 commit into
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 31 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
vianmangal
marked this pull request as ready for review
October 15, 2026 17:02
This branch has not been deployed
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.
Addressed Issues:
Related to #353
The undefined
paginatedStaleReposOfOrgcall reported in #353 is already absent from currentmainfollowing #262. This PR adds the missing regression coverage for the Stale Issues Ratio tab using the existing Vitest and React Testing Library setup.The tests verify that:
Screenshots/Recordings:
Not applicable: this PR adds automated tests only. The original crash recording is attached to #353.
Additional Notes:
The new test file is colocated with
GovernancePage.jsx, following the existingSettingsPage.test.jsxandRequireAnalysis.test.jsxconventions. It mocksuseAppto supply deterministic audit results and uses user interactions against the real page. No dependencies or application behavior change.Validation
npm test -- --run: all 85 tests pass across 9 files, including the 4 new Governance tests.npm run build: passes with the existing bundle-size warning.ReferenceError: paginatedStaleReposOfOrg is not defined. The application file was restored unchanged before the final test/build runs.git diff --check: passes.lintscript. Its existing ESLint configuration targets TS/TSX and imports dependencies absent frompackage.json. The test follows the surrounding JavaScript/JSX source and test conventions.AI disclosure
AI assistance was used to write the regression tests, inspect the existing fix and repository guidelines, run validation, and draft this PR.
Checklist