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

Git Integration #177

Open
bzbetty opened this issue Mar 15, 2023 · 1 comment
Open

Git Integration #177

bzbetty opened this issue Mar 15, 2023 · 1 comment

Comments

@bzbetty
Copy link

bzbetty commented Mar 15, 2023

Currently we have to compare the mismatch manually then copy the file over if it's good. Wondering if there's some way to just overwrite the current snapshot but fail the unit test if the file is considered changed by git.

That way I can just use the in built diff tools really easily and just use git commit as a way to approve.

Does means tests won't initially work until they're commited which might not be great, but certainly has potential to reduce required tooling/overhead.

@bzbetty
Copy link
Author

bzbetty commented Mar 15, 2023

potentially just a way to replace ISnapshotFileHandler might allow something like this?

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

No branches or pull requests

1 participant