Skip to content

⬆️ Update spatie/pest-plugin-snapshots to ^2.3#497

Merged
retlehs merged 1 commit into
mainfrom
fix/pest-plugin-snapshots-2.3
Feb 22, 2026
Merged

⬆️ Update spatie/pest-plugin-snapshots to ^2.3#497
retlehs merged 1 commit into
mainfrom
fix/pest-plugin-snapshots-2.3

Conversation

@retlehs

@retlehs retlehs commented Feb 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Bumps spatie/pest-plugin-snapshots constraint from ^2.1 to ^2.3
  • Renames all snapshot files from __N to __2N to match new counter behavior

Background

pest-plugin-snapshots 2.3.0 introduced a double-increment bug: the snapshot counter is now incremented in both MatchesSnapshots::doSnapshotAssertion() (existing) and the new SnapshotIdAware::getSnapshotId() override (new in 2.3.0). This shifts every snapshot ID from __N to __2N.

Since composer.lock isn't committed, CI resolved 2.3.0 on the latest push and the tests started failing.

🤖 Generated with Claude Code

pest-plugin-snapshots 2.3.0 moves the snapshot counter increment into
getSnapshotId(), but MatchesSnapshots::doSnapshotAssertion() also
increments it, causing a double-increment on each assertion. This shifts
all snapshot IDs from __N to __2N.

Updates the version constraint and renames all snapshot files accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@retlehs retlehs merged commit 6347362 into main Feb 22, 2026
3 checks passed
@retlehs retlehs deleted the fix/pest-plugin-snapshots-2.3 branch February 22, 2026 02:54
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