Repository navigation
test: tighten SFCC and Vercel install-parameter specs [] - #11419
Open
Jared Jolton (jjolton-contentful) wants to merge 1 commit into
Open
Jared Jolton (jjolton-contentful) wants to merge 1 commit into
Jared Jolton (jjolton-contentful) wants to merge 1 commit into
Conversation
Assert real config UI and onConfigure validation for SFCC, and invoke fetchAppInstallationParameters in the missing-params case so TypeError expectations are exercised. Co-authored-by: Cursor <cursoragent@cursor.com>
Jared Jolton (jjolton-contentful)
requested review from
a team
as code owners
November 5, 2026 17:37
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
ConfigScreen.spec.tsx): Assert the rendered config heading and thatonConfigurereturnsfalsewhen required credentials are empty. The previous example expected scaffold copy and did not await the async query, so it could pass without checking the current UI or install validation.fetch-app-installation-parameters.spec.ts): CallfetchAppInstallationParametersin the missing-parameters example and assert aTypeErroris thrown. The prior example never invoked the helper, so it did not exercise parameter validation.Test-only changes; no production code.
Rationale
These specs guard app installation and stored installation parameters. Tighter assertions help catch regressions during refactors (UI copy updates or stricter install validation) without changing runtime behavior.
Test plan
cd apps/salesforce-commerce-cloud && npm test -- --run src/locations/ConfigScreen.spec.tsxcd apps/vercel/app-actions && NODE_ENV=test TS_NODE_TRANSPILE_ONLY=1 npx mocha --exit --grep fetchAppInstallationParameters