spatie/pest-plugin-snapshots

Snapshot location

Closed this issue · 2 comments

Hi it would be nice if a snapshot location is located same in test directory, just like base snapshot

By default, snapshots are stored in a snapshots directory relative to the test class.

thank you

I have large project using PHPunit with spatie/phpunit-snapshot-assertions, then my concern is after half of the test moved to pestphp syntax then adding spatie/pest-plugin-snapshots, all snapshot file is moved to directory beside of Pest.php file. Can we make this the same as the base snapshot directory?

already answer by @freekmurze in private repo in https://testing-laravel.com/

I would recommend not to use both package in a project.
If possible, try to convert all your snapshot tests in one go.