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

Add a warning for using snapshot() without match()? #240

Open
MarieLataretu opened this issue Jul 29, 2024 · 0 comments
Open

Add a warning for using snapshot() without match()? #240

MarieLataretu opened this issue Jul 29, 2024 · 0 comments

Comments

@MarieLataretu
Copy link
Contributor

After some time of confusion as to why the snapshot file was not generated, while the test passed, I discovered that I was missing the match() function:

        then {
                assert snapshot(workflow)
        }

This is especially unfavorable when you already have a snapshot file and think that everything is fine, since the test passed 🙈

I think, adding a warning for this usage would totally make sense, if it's possible.

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