Repository navigation
(janitor/test-prune): remove tautological and trivial tests - #7242
Merged
Merged
Conversation
… coverage Remove tests that cannot detect a plausible production regression: - apps/mobile shouldShowRunOnSelector: the function unconditionally returns true and ignores its argument; four tests assert the same constant for inputs that are never read. - web-shared buildUpstreamBody: an identity pass-through; the test asserts deep-equality with its own input. - web-shared mergeServiceFeeCommercialMetadata: the test passes disjoint key sets, so it only verifies JS object-spread union and never exercises the function's override-precedence contract. - web-shared buildInheritedInlineServiceFeeTaxInput: asserts a constant that is already covered by the resolveServiceFeeTaxInput resolver test.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryTest-only pruning of four tautological or redundant tests; every removal was verified against the production source and no runtime code changed, so no behavioral risk was found. Files Reviewed (4 files)
Verification Notes
Reviewed by deepseek-v4.1-flash · Input: 46.9K · Output: 8.6K · Cached: 534.5K Review guidance: REVIEW.md from base branch |
pandemicsyn
approved these changes
Oct 8, 2026
This was referenced Oct 9, 2026
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.
Summary
Removes four test cases (one full file) that cannot detect a plausible production regression. Each was verified against its production source before deletion. No production code changed.
Removals and surviving coverage
1.
apps/mobile/src/lib/should-show-run-on-selector.test.ts(deleted file)shouldShowRunOnSelectorunconditionallyreturn trueand ignores its_organizationIdargument (the parameter is documented as "retained for call-site compatibility; it no longer gates visibility"). Four tests asserttruefor inputs the function never reads, so they exercise zero branches.truewould be caught, and no decision logic is protected. The intent ("personal and org flows both show the selector") is already documented in the function's docstring.2.
packages/web-shared/src/lib/ai-gateway/transcriptions/transcription-request.test.ts—buildUpstreamBodybuildUpstreamBodyisreturn body. The test assertsexpect(buildUpstreamBody(body)).toEqual(body), i.e. deep-equality of an identity function with its own input.TranscriptionRequestSchema, which is tested directly in the same file.3.
packages/web-shared/src/lib/service-fees/checkout.test.ts—mergeServiceFeeCommercialMetadata{ ...(existing ?? {}), ...commercial }. The test passes two non-overlapping key sets, so it only proves the language's spread-union semantics.commercialoverridingexistingon key collision — is not exercised. Reversing the spread order (a plausible regression) leaves the test green.4.
packages/web-shared/src/lib/service-fees/tax.test.ts—buildInheritedInlineServiceFeeTaxInputreturn { source: 'inline_inherit' }. The standalone test restates that literal.resolveServiceFeeTaxInputtest in the same file (theinlineprincipal case) already asserts the identical{ source: 'inline_inherit' }outcome through the real entry point.Verification
apps/mobile:npx vitest run src/lib— 513 files / 6697 tests pass (the deleted file was the only change in that tree).oxlinton the three modifiedweb-sharedfiles: 0 warnings, 0 errors.oxfmt: changed files are formatted clean;git diff --checkclean.web-sharedJest suites require a live PostgreSQL instance (per-worker test databases are created inapps/web/src/tests/setup/workerSetup.ts), which is not available in this environment. These are pure deletions of test code; the remaining test code already typechecked/linted before the change.