spatie / phpunit-snapshot-assertions

A way to test without writing actual test cases
https://spatie.be/courses/testing-laravel-with-pest/snapshot-testing
MIT License
640 stars 70 forks source link

need a way to update snapshots with codecept #158

Closed thevikas closed 1 year ago

thevikas commented 1 year ago

Codeception is not sending the params like phpunit and so have to just manually delete the file for force update. Any ideas?

h3ll3r commented 1 year ago

Hi @thevikas, readme states, that it's possible by setting an env variable:

This is possible by adding a-d --update-snapshots flag to the phpunit command, or setting the UPDATE_SNAPSHOTS env var to true.