Skip to content

Add syrupy snapshot tests for bump lockfile messages and publish stale-lockfile errors #81

Description

@coderabbitai

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions