Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Make snapshots #150

Open
hannaofsweden opened this issue Aug 13, 2021 · 1 comment
Open

Make snapshots #150

hannaofsweden opened this issue Aug 13, 2021 · 1 comment

Comments

@hannaofsweden
Copy link

Thank you for taking time to open a new issue. Please answer a few questions to help us fix it faster. You can delete text that is irrelevant to the issue.

Is this a bug report or a feature request?

Feature request.

Description

Currently, snapshots are one line each in a single file.

That makes it so you can't see what has changed in a Git diff, since Git is line-based.

Idea:

Make snapshots javascript objects instead so that a Git diff will show exactly what has changed. Make this a configurable option that you can set for all tests.

It might also be useful to allow using a single snapshot file per test file so that you can see by the list of changed snapshot files what has changed.

@bmaupin
Copy link

bmaupin commented Mar 24, 2023

This looks like a duplicate of #18

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants