Repository navigation
Remove leftover tautological test asserts - #156
Merged
Merged
Conversation
Drop lone post-deletion absences that cannot fail on a real regression: the curated_feeds filter column PRAGMA check, and the leftover data-admin-route-placeholder not.toContain after the hydrated-shell oracle. Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
|
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 59 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 |
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.
Intent
Drop leftover agent-written test asserts that cannot fail on a real regression: the curated_feeds
filter_in/filter_outPRAGMA absence, and the leftoverdata-admin-route-placeholdernot.toContainafter the hydrated-shell oracle. State-flip absences stay.Door: two-way
Cleanup: none
Why
Daily keep-tests-tight pass.
docs/contributing/testing-principles.mdis not in this repo; this applies the same leftover-assert rules: every remaining test needs an independent oracle.Testing
npm run check(oxfmt + oxlint)npx tsc --noEmitpassednpm run validate— format, lint, typecheck, and 45 files / 306 tests passedNo app behavior changed, so control CLI
request/browsewould not prove anything beyond the existing suite.Pre-existing lint warnings left alone: conditional
expectinversion.test.ts(already on main) andbeforeEachinmedia-metadata-tools.test.ts.System recap
Risk: low Touches: test suites only (
app/db/feeds.test.ts,app/routes/admin/index.test.ts)(extends existing coverage; no product code)
Removed leftover asserts in:
feeds.test.ts— lonenot.toContain('filter_in'|'filter_out')after curated feeds never had those columnsadmin/index.test.ts— leftoverdata-admin-route-placeholderabsence; the script-tag oracle still proves the hydrated shellKept state-flip absences (token present → revoke → gone, diagnostics present → clear → gone, usedAt null → consume → set), JWKS/
refresh_tokennon-empty checks that are the only oracle, and first-fetchresult1null-check where the next assert is fetch count.Note
Low Risk
Only test assertions were removed; no production code paths were modified.
Reviewed by Cursor Bugbot for commit 8f9bd63. Bugbot is set up for automated code reviews on this repo. Configure here.