test: fix setup finalize web search mocks#51253
Merged
jalehman merged 1 commit intoopenclaw:mainfrom Mar 20, 2026
Merged
Conversation
Regeneration-Prompt: | Fix the unrelated TypeScript breakage in src/wizard/setup.finalize.test.ts that blocked pnpm tsgo on current origin/main. The failing tests mocked configured web search providers using an outdated partial shape, but PluginWebSearchProviderEntry now requires pluginId plus runtime hook methods like getCredentialValue, setCredentialValue, and createTool. Keep the fix additive and local to the test seam by introducing a small helper that builds fully typed provider entries, then reuse it in the affected cases instead of weakening production types.
Contributor
Greptile SummaryThis PR fixes a TypeScript typecheck failure ( The fix introduces a small
Confidence Score: 5/5
Last reviewed commit: "test: fix setup fina..." |
frankekn
pushed a commit
to artwalker/openclaw
that referenced
this pull request
Mar 23, 2026
furaul
pushed a commit
to furaul/openclaw
that referenced
this pull request
Mar 24, 2026
lovewanwan
pushed a commit
to lovewanwan/openclaw
that referenced
this pull request
Apr 28, 2026
ogt-redknie
pushed a commit
to ogt-redknie/OPENX
that referenced
this pull request
May 2, 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
Describe the problem and fix in 2–5 bullets:
pnpm tsgofails on currentorigin/mainbecausesrc/wizard/setup.finalize.test.tsstill mocks web-search providers with an outdated partial shape.PluginWebSearchProviderEntrymocks, then reused it in the two affected cases.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
None.
Security Impact (required)
No)No)No)No)No)Yes, explain risk + mitigation:Repro + Verification
Environment
Steps
pnpm tsgoon currentorigin/main.src/wizard/setup.finalize.test.tsfor mockedPluginWebSearchProviderEntryvalues.Expected
pnpm tsgopasses.pnpm test -- src/wizard/setup.finalize.test.tspasses.Actual
Evidence
Attach at least one:
Human Verification (required)
What you personally verified (not just CI), and how:
pnpm tsgoandpnpm test -- src/wizard/setup.finalize.test.tsboth pass in this worktree.pnpm checkis currently blocked on an unrelated baseline mismatch insrc/plugins/bundled-web-search-registry.tsalready present on currentorigin/main.Review Conversations
If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.
Compatibility / Migration
Yes)No)No)Failure Recovery (if this breaks)
src/wizard/setup.finalize.test.tspnpm tsgofailure returning.Risks and Mitigations
List only real risks for this PR. Add/remove entries as needed. If none, write
None.PluginWebSearchProviderEntry, so future required contract changes will continue surfacing at this single seam.