Skip to content

notifications: remove stale alert_notifications snapshot files#3079

Open
jwhartley wants to merge 1 commit into
masterfrom
notifications-remove-stale-snapshots
Open

notifications: remove stale alert_notifications snapshot files#3079
jwhartley wants to merge 1 commit into
masterfrom
notifications-remove-stale-snapshots

Conversation

@jwhartley

Copy link
Copy Markdown
Contributor

What

Removes the 16 crates/notifications/src/snapshots/alert_notifications__tests__*.snap files.

Why

The crate was renamed from alert_notifications to notifications (see crates/notifications/Cargo.toml). insta names snapshot files {crate}__{module}__{name}.snap, so it now writes and reads under the notifications__tests__ prefix. Every test calls insta::assert_snapshot!("<explicit_name>", ...), and the live set lives under notifications__tests__. The alert_notifications__tests__* files are dead duplicates left over from before the rename; no current test can reference them.

Verification

cargo test --manifest-path crates/notifications/Cargo.toml
  • Before removal: 25 passed.
  • After git rm of the 16 files: 25 passed (a missing referenced snapshot would have failed the run).

The 19 live notifications__tests__*.snap files are untouched.

The crate was renamed from alert_notifications to notifications, so insta
now writes and reads snapshots under the notifications__tests__ prefix.
The 16 alert_notifications__tests__*.snap files are dead duplicates that
no current test references. Verified: cargo test --manifest-path
crates/notifications/Cargo.toml passes (25 tests) with them removed.
@jwhartley jwhartley requested a review from jshearer June 25, 2026 03:46
@jwhartley

Copy link
Copy Markdown
Contributor Author

should be a quick one @jshearer, just some cleanup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant