Commit 3ca8b0e
Remove confusing 'previously unseen snapshot' message (#812)
## Problem
When running `cargo insta test --force-update-snapshots --accept`,
existing snapshots showed:
```
created previously unseen snapshot /path/to/snapshot.snap
```
This was confusing since the snapshots weren't new - they were being
updated.
## Solution
Remove the conditional message logic and always print "updated snapshot"
for in-place updates.
## Changes
- Simplified message in `runtime.rs:558-562` to always show "updated
snapshot"
- Kept the TODO comment documenting that the `unseen` logic is inverted
(for context)
- Updated inline snapshot formatting from test runs
## Notes
The `unseen` variable still has inverted logic (`true` when file exists,
not when it doesn't), which affects the deprecated `INSTA_UPDATE=unseen`
mode. Since that mode is deprecated, we're not fixing the logic - just
removing its use in the message.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent dcc2e04 commit 3ca8b0e
3 files changed
+7
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
| 560 | + | |
565 | 561 | | |
566 | 562 | | |
567 | 563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1430 | 1430 | | |
1431 | 1431 | | |
1432 | 1432 | | |
1433 | | - | |
1434 | | - | |
1435 | | - | |
| 1433 | + | |
1436 | 1434 | | |
1437 | | - | |
| 1435 | + | |
1438 | 1436 | | |
1439 | | - | |
| 1437 | + | |
| 1438 | + | |
1440 | 1439 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
302 | 304 | | |
303 | 305 | | |
304 | 306 | | |
| |||
0 commit comments