Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: store snapshot values in external files #25

Merged
merged 6 commits into from
Dec 10, 2023
Merged

feat: store snapshot values in external files #25

merged 6 commits into from
Dec 10, 2023

Conversation

15r10nk
Copy link
Owner

@15r10nk 15r10nk commented Jul 27, 2023

Problem:

inline snapshots are useful for small test data, but it is not practical to put bigger values into your source code. outsource(data) allows to outsource bytes or strings into external files.

new API:

assert outsource(b"some data") == snapshot(external("aef15957*.bin"))

@15r10nk 15r10nk force-pushed the external branch 3 times, most recently from a6ed821 to 917780d Compare December 10, 2023 13:41
@15r10nk 15r10nk force-pushed the external branch 3 times, most recently from 0749e97 to a52be35 Compare December 10, 2023 14:27
@15r10nk 15r10nk marked this pull request as ready for review December 10, 2023 14:34
@15r10nk 15r10nk merged commit 618420b into main Dec 10, 2023
13 checks passed
@15r10nk 15r10nk deleted the external branch December 10, 2023 14:36
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