You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: