Skip to content

test(snapshot-testing): create snapshot testing package#1872

Merged
kuhe merged 1 commit intomainfrom
kuhe/test/snapshot
Feb 17, 2026
Merged

test(snapshot-testing): create snapshot testing package#1872
kuhe merged 1 commit intomainfrom
kuhe/test/snapshot

Conversation

@kuhe
Copy link
Contributor

@kuhe kuhe commented Feb 16, 2026

  • generate as devDep only

This PR adds a smithy-build.json configuration called generateSnapshotTests, default false.

When set, an additional vitest test is generated which can be used to both write and compare request snapshots.

This generated test suite protects against edge case regressions in serialization behavior that aren't covered by hand-written tests.

@kuhe kuhe requested a review from a team as a code owner February 16, 2026 21:48
@kuhe kuhe marked this pull request as draft February 16, 2026 21:48
@kuhe kuhe force-pushed the kuhe/test/snapshot branch 3 times, most recently from 737f08d to f57547e Compare February 17, 2026 17:09
@kuhe kuhe force-pushed the kuhe/test/snapshot branch from f57547e to 07b3382 Compare February 17, 2026 17:16
@kuhe kuhe marked this pull request as ready for review February 17, 2026 17:23
@kuhe kuhe force-pushed the kuhe/test/snapshot branch 3 times, most recently from 50676ba to e201c3a Compare February 17, 2026 19:21
@kuhe kuhe force-pushed the kuhe/test/snapshot branch from e201c3a to 1c83f39 Compare February 17, 2026 19:28
@kuhe kuhe merged commit c5db01c into main Feb 17, 2026
15 checks passed
@kuhe kuhe deleted the kuhe/test/snapshot branch February 17, 2026 23:00
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.

2 participants