Skip to content

test: drop the file snapshots - #319

Merged
HDauven merged 1 commit into
mainfrom
test/drop-snapshots
Nov 3, 2026
Merged

HDauven merged 1 commit into
mainfrom
test/drop-snapshots

Conversation

@HDauven

@HDauven HDauven commented Nov 3, 2026

Copy link
Copy Markdown
Member

Removes 52,308 lines of file snapshots, about four times the app's own code. On their own they caught 1 of 20 bugs planted at random, and they turned small changes into diffs of thousands of lines.

A test whose only check was a snapshot goes. Behaviour worth keeping gets a real check: Show more hidden after an error, the failed-transaction tooltip, and a disabled link. Inline snapshots stay, because they compare exact values.

Note: planted bugs were in script logic, not page markup, so a change in markup alone is now less likely to fail a test.

Tests: 678 → 601, all passing.

52,308 lines of snapshots, about four times the app's code, caught 1 of 20
bugs planted at random on their own, and turned small changes into diffs of
thousands of lines. A test whose only check was a snapshot goes, and the
behaviours worth keeping get real checks. Inline snapshots stay: they compare
exact values.
@HDauven
HDauven merged commit 4c22074 into main Nov 3, 2026
1 check passed
@HDauven
HDauven deleted the test/drop-snapshots branch November 3, 2026 15:16
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