Skip to content

test: remove getNamespacePrefix stubs for sfdx-core 8.31.0 W-22583951#1674

Merged
soridalac merged 2 commits into
mainfrom
ph/remove-getNamespacePrefix-stubs
May 22, 2026
Merged

test: remove getNamespacePrefix stubs for sfdx-core 8.31.0 W-22583951#1674
soridalac merged 2 commits into
mainfrom
ph/remove-getNamespacePrefix-stubs

Conversation

@peternhale
Copy link
Copy Markdown
Contributor

Summary

@W-22583951@

  • Remove sinon stubs for the now-deleted private AuthInfo.getNamespacePrefix method in sandbox NUT tests
  • getNamespacePrefix was removed in @salesforce/core 8.31.0, replaced by the standalone determineOrg function which gracefully handles errors via try/catch
  • yarn.lock deduplication from dependency resolution

Change type

Dependency + test only — no source code changes.

Test plan

  • CI NUT tests pass (sandboxResume.nut.ts, sandboxRefresh.nut.ts) against @salesforce/core 8.31.0

The private AuthInfo.getNamespacePrefix method was removed in
@salesforce/core 8.31.0, replaced by the standalone determineOrg
function which has its own error handling. Remove the sinon stubs
that referenced the now-deleted method.
sfdx-core 8.31.0 added determineOrg() which calls singleRecordQuery on
Organization during Org.init(). Updated agent test assertions to filter
by query content instead of absolute call counts, and regenerated schemas
to include the new orgEdition property.
@soridalac soridalac merged commit c52a921 into main May 22, 2026
13 checks passed
@soridalac soridalac deleted the ph/remove-getNamespacePrefix-stubs branch May 22, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants