You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `job log` command to retrieve and display job execution logs. Supports fetching logs for a specific execution or automatically finding the most recent (or most recent failed) execution with a log file.
Copy file name to clipboardExpand all lines: .claude/skills/testing/SKILL.md
+25-9Lines changed: 25 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -324,11 +324,29 @@ const customAuth = new MockAuthStrategy('custom-token');
324
324
325
325
## Silencing Test Output
326
326
327
-
Commands may produce console output (tables, formatted displays) even in tests. Use these helpers to keep test output clean.
327
+
Commands produce console output (tables, formatted displays) during tests. **All test helpers are designed to keep test output clean by default** — no extra work needed in most cases.
The `runSilent` helper uses oclif's `captureOutput` to suppress stdout/stderr:
331
+
The `stubCommandConfigAndLogger` helper (used by AM and sandbox command tests) automatically stubs `command.log`, `command.logToStderr`, and `ux.stdout` so no output leaks to the console:
- The test doesn't need to verify console output content
350
-
- You want clean test output with only pass/fail summary
351
-
352
365
### When Output Verification is Needed
353
366
354
-
If you need to verify console output, stub `ux.stdout` directly:
367
+
If you need to verify console output content, stub `ux.stdout` directly**before** calling `stubCommandConfigAndLogger` (which checks if the stub already exists):
Copy file name to clipboardExpand all lines: AGENTS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -161,6 +161,8 @@ This catches prettier formatting, import ordering, class member ordering (`perfe
161
161
162
162
See [testing skill](./.claude/skills/testing/SKILL.md) for patterns on writing tests with Mocha, Chai, and MSW.
163
163
164
+
**Stdout in tests**: Command tests must not leak output to the console. `stubCommandConfigAndLogger()` silences `command.log`, `command.logToStderr`, and `ux.stdout` automatically. For other cases, use `runSilent()` from `test/helpers/test-setup.ts`.
165
+
164
166
## Changesets
165
167
166
168
This project uses [Changesets](https://github.com/changesets/changesets) for version management with **independent per-package versioning**. Each package versions independently based on its own changesets.
Copy file name to clipboardExpand all lines: packages/b2c-cli/CHANGELOG.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,16 @@
1
1
# @salesforce/b2c-cli
2
2
3
+
## 0.7.4
4
+
5
+
### Patch Changes
6
+
7
+
-[`4cf7249`](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/commit/4cf72497f5e01d627de7aae80290d072f4c914f6) - Add `cartridges` config option to specify which cartridges to deploy/watch. Supports comma or colon-separated strings, or arrays in dw.json. Also accepts `cartridgesPath` as an alias. The `-c` flag still takes precedence when provided. (Thanks [@clavery](https://github.com/clavery)!)
8
+
9
+
-[#264](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/pull/264)[`9996eba`](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/commit/9996eba2a8fe53a27bf52fb208eb722d618cd282) - Fix multiple issues with the hook scaffold (#247): (Thanks [@clavery](https://github.com/clavery)!)
0 commit comments