Repository navigation
test: share the client registration command to restore the jscpd gate - #1317
Merged
Merged
Conversation
After #1301 merged, main's duplicated-line share rose to 2.503%, over jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP test repeated the dialect test's imports and npx registration command. Export that command from the shared client test fixture instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
This was referenced Oct 9, 2026
darsrc
pushed a commit
to darsrc/rea
that referenced
this pull request
Oct 10, 2026
…morluto#1317) After morluto#1301 merged, main's duplicated-line share rose to 2.503%, over jscpd's 2.5% threshold, so Static checks fail on every PR. The new OMP test repeated the dialect test's imports and npx registration command. Export that command from the shared client test fixture instead.
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
npm run jscpd(part ofcheck:ci, the "Static checks" job) fails onmainat 4b8e744:Measured with
jscpd src/ tests/ --reporters json: 2.4990% at 24673aa, then 2.5028% (8,049 duplicated lines) after #1301 (mine) merged. The README commit since then adds no TS. Every PR based on currentmainwill fail Static checks until this is fixed.main's own CI run for 4b8e744 was still queued when I checked.The new clone is from #1301.
tests/boundary/filesystem/ompClientConfiguration.test.tsrepeated the dialect test's imports and its 6-line npx registration command (16 duplicated lines).Change
Export
NPX_REGISTRATION_COMMANDfromtests/fixtures/clientEnvironment.ts, the shared client test fixture added in #1301, and use it in both test files. Test-only change; the command value is unchanged.Verification
npx jscpd src/ tests/: 2.4967% (8,026 duplicated lines);npm run jscpdpasses.npm run test:focused --onompClientConfiguration,clientConfigurationDialects,clientLifecycleandclientRegistrationStatus(85 passed)tsc --noEmit, oxlint,npm run format:checkThe margin under 2.5% is small (about 10 lines), so the next PR that adds duplicated lines will trip this again.
🤖 Generated with Claude Code