Background
Raised during review of PR #75 (refresh stale Cargo lockfiles before publish preflight).
Problem
PR #75 introduced new text-based CLI output for lockfile operations:
lading bump now renders lockfile paths in its result message with a (lockfile) suffix
lading publish now emits a multi-line stale-lockfile error including repair commands
Both outputs are currently verified only by substring matching. This allows unintentional formatting regressions to go undetected.
Resolution
Add syrupy snapshot tests covering:
- Bump result message with a root
Cargo.lock (lockfile suffix)
- Bump result message with a nested
tests/ui_lints/Cargo.lock
- Publish
PublishPreflightError message for a single stale lockfile
- Publish
PublishPreflightError message for multiple stale lockfiles
References
Background
Raised during review of PR #75 (refresh stale Cargo lockfiles before publish preflight).
Problem
PR #75 introduced new text-based CLI output for lockfile operations:
lading bumpnow renders lockfile paths in its result message with a(lockfile)suffixlading publishnow emits a multi-line stale-lockfile error including repair commandsBoth outputs are currently verified only by substring matching. This allows unintentional formatting regressions to go undetected.
Resolution
Add syrupy snapshot tests covering:
Cargo.lock(lockfile suffix)tests/ui_lints/Cargo.lockPublishPreflightErrormessage for a single stale lockfilePublishPreflightErrormessage for multiple stale lockfilesReferences