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

[Bug]: Watch mode is triggered by option update-snapshot #1347

Open
Barbapapazes opened this issue Jan 27, 2025 · 0 comments
Open

[Bug]: Watch mode is triggered by option update-snapshot #1347

Barbapapazes opened this issue Jan 27, 2025 · 0 comments
Labels

Comments

@Barbapapazes
Copy link

Barbapapazes commented Jan 27, 2025

What Happened

Hello 👋,

When using php artisan test --watch --update-snapshots, the creation or the modification of a snapshot will trigger the watch so test will re-run. This re-run will update snapshots that will result in a new run. This is an infinite loop.

How to Reproduce

Create a simple test that will generate a snapshot and run tests using both --watch and --update-snapshot

Sample Repository

No response

Pest Version

3.5.1

PHP Version

8.2

Operation System

Linux

Notes

I think it could be great to filter out the tests/.pest/snapshots folder to avoid to trigger a new run.

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

No branches or pull requests

1 participant