Repository navigation
Remove plugin tests that replay SDK behavior or restate source - #4374
Merged
Merged
Conversation
Remove plugin and SDK tests that replay shared helpers, restate source, duplicate stronger tests, or keep test-only seams alive, and move the coverage that mattered to the owning boundary. - Claude native roots: drop the cap test that replayed the SDK filter; inline filterClaudeNativeRoots into resolveClaudeNativeRoots. - github and docs: drop the SDK RPC inference/validation demo tests. Their plugin-specific input checks now run against the real plugins: github startWork rejects a bad repository or item number, and docs /write rejects non-string content. - pi: drop rpc-child.extension-ui.test.ts; the session and bridge extension-ui tests cover auto-cancel, forwarding and responses. - defineCli replays: trim the generic help, unknown option/command, unexpected argument and missing-argument checks from six plugins. Each plugin keeps its own command-name help assertion and error envelopes, custom-instructions keeps the required-text check (and proves a bare `set` leaves saved instructions intact), provider-retry keeps one exit-2 check, and cli-spec.test.ts now covers usageErrorExitCode at every usage-error site. - Claude workspace-write roots: drop tests below the bridge boundary. - workflows: drop the doc-tree grep for a command that never shipped. - monaco: drop tautological language tests that could not run in CI; stage-assets.mjs now fails the bundle build when a claimed language id is not registered. - concurrency-limit: drop limits.test.ts (covered by server tests). - Plugin Guide: replace the hand-kept *_MARKS arrays and their inventory tests with a rendered check that each visual group's fixture draws exactly the group's surface ids; update the maintenance skill. - scaffold: drop a duplicate fidelity test and the unreachable fixtureResponsiveStrategy "reflow" branch. - Codex: drop git-root combine tests below the translator boundary; un-export combineWorkspaceWriteRoots. - tasks: drop a byte-for-byte duplicate side-chat steer test. - plugin-build: drop an inert toolchain cache test and a restatement of PLUGIN_SERVER_EXTERNALS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Human comments
What was wrong
Several plugin tests didn't test the plugin:
defineCliparsing copied into six plugins.filterClaudeNativeRoots,combineWorkspaceWriteRoots, and the Plugin Guide*_MARKSarrays.What changed
Found by a read-only test audit using the repo
test-auditskill (#4361).filterClaudeNativeRootsintoresolveClaudeNativeRoots. No published SDK export changes.defineClireplays: trims the generic parsing checks from six plugins. The SDK'scli-spec.test.tscovers them, and now also coversusageErrorExitCodeat every usage-error site. Each plugin keeps:bb <name> <cmd>command-name assertion;custom-instructions also keeps the required-text check, and proves a bare
setleaves saved instructions intact.startWorkrejects a bad repo or item number, and docs/writerejects non-string content.*_MARKSarrays and their inventory tests are replaced by a rendered check. Each visual group's fixture must draw exactlysurfaceIds(group).surfaces.tsandanatomy-manifest.jsonare unchanged.stage-assets.mjsnow fails the bundle build (prepare:bundled, part ofsmoke:tarball) if a claimed language id isn't registered.rpc-child.extension-ui.test.tscombineWorkspaceWriteRootsis no longer exportedlimits.test.tsProduction, tooling and docs +33/−66; tests +134/−873.
How you verified
pnpm exec turbo run test lint typecheckpasses over all 16 touched packages (52/52).setwithout text, CLI command names, githubstartWorkinput validation, and the docs content type.🤖 Generated with Claude Code