test(format): redact plumb_version in JSON snapshots - #251
Conversation
The two JSON envelope snapshots assert "plumb_version": "0.0.X"
literally. The value comes from env!("CARGO_PKG_VERSION"), so every
release version bump churns the snapshots and breaks CI on the
release-please PR (caught + patched in #248).
Adds insta's `filters` feature and redacts the version line via
`Settings::add_filter` so future releases stop drifting.
Closes #249.
|
I have everything I need. Here is the review. PR #251 —
|
Summary
Closes #249. Stops the JSON envelope snapshots from churning on every release.
The two snapshots assert `"plumb_version": "0.0.X"` literally. The value comes from `env!("CARGO_PKG_VERSION")`, so v0.0.1 → 0.0.2 broke main CI (fixed in #248) and v0.0.2 → 0.0.3 would have broken release-please #250 the same way.
Fix
Test plan
🤖 Generated with Claude Code