fix(cli-test)!: remove default "--app deployed" global flag from commands#2624
Conversation
🦋 Changeset detectedLatest commit: 16ed1ef The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2624 +/- ##
==========================================
- Coverage 88.88% 88.88% -0.01%
==========================================
Files 62 62
Lines 10239 10238 -1
Branches 451 451
==========================================
- Hits 9101 9100 -1
- Misses 1116 1117 +1
+ Partials 22 21 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
zimeg
left a comment
There was a problem hiding this comment.
QQ before merge I might've tested just the current defaults
| cmd = cmd.concat(['--app', opts.app]); | ||
| } else { | ||
| cmd = cmd.concat(['--app', 'deployed']); | ||
| if (this.command[0] !== 'create') { |
There was a problem hiding this comment.
🦠 question: Oh does this block "app" flag from the "create" command altogetther?
There was a problem hiding this comment.
yes i believe it does! should it only block when the flag is passed with local and deployed?
There was a problem hiding this comment.
@srtaalej Hm I think we should remove app defaults altogether instead of extending the special cases to guard against. It's uncomfortable to add implementation logic to this package IMHO
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
| let cmd = new SlackCLIProcess(['help']); | ||
| await cmd.execAsync(); | ||
| sandbox.assert.neverCalledWith(spawnProcessSpy, sinon.match.string, sinon.match.array.contains(['--app'])); |
There was a problem hiding this comment.
🧪 praise: Thanks for covering these cases!
| cmd = cmd.concat(['--verbose']); | ||
| } | ||
| } else { | ||
| cmd = cmd.concat(['--skip-update', '--force', '--app', 'deployed']); |
There was a problem hiding this comment.
🪓 praise: Nice!
🔮 note: I have hope to split "force" into more meaningful flags and perhaps we use an environment variable to skip updates in later changes. I'm hoping we avoid having defaults exposed for each command.
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
Co-authored-by: Eden Zimbelman <eden.zimbelman@salesforce.com>
Summary
Skip passing a default
--app deployedflag to commands.Notes
local, deployed) when using--appwithcreate.Requirements