Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): testSetup has non ts-sinon dependency #974

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

mshanemc
Copy link
Contributor

@mshanemc mshanemc commented Nov 2, 2023

What does this PR do?

sfdx-core/testSetup makes use of ts-sinon for stubMethod but sfdx-core has ts-sinon in its devDeps. So consumers who want to use testSetup have to know to add ts-sinon in their devDeps, and that's not intuitive at all.

error looks like

Error: Cannot find module '@salesforce/ts-sinon'
Require stack:
- /Users/shane.mclaughlin/eng/salesforcecli/plugin-limits/node_modules/@salesforce/core/lib/testSetup.js
- ....etc

Removes all the use of StubMethod. sfdx-core will still use ts-sinon, but only in tests.

What issues does this PR fix or reference?

[skip-validate-pr]

mdonnalley
mdonnalley previously approved these changes Nov 2, 2023
@mshanemc mshanemc merged commit a34c4b7 into main Nov 2, 2023
30 checks passed
@mshanemc mshanemc deleted the sm/testsetup-without-ts-sinon-dep branch November 2, 2023 17:50
cristiand391 added a commit to cristiand391/sf-plugin-api that referenced this pull request Nov 5, 2023
* feat: migrate to esm

also:
* remove swc
* bump deps
* remove `@salesforce/ts-sinon`, it's no longer required: forcedotcom/sfdx-core#974
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.

3 participants