Skip to content

Commit 3673dc9

Browse files
committed
Adds note on snapshots
1 parent 4af056e commit 3673dc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

upgrade-guide.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ All other Pest maintained plugins should be updated to version `^4.0` in your ap
2727
+ "pestphp/pest-plugin-laravel": "^4.0",
2828
```
2929

30+
### Snapshot Testing Changes
31+
32+
> Likelihood Of Impact: High
33+
34+
If you were using the `toMatchSnapshot`, Pest 4 changes the way snapshots names are generated. As such, you will need to update your snapshot names using the `--update-snapshots` option:
35+
36+
```bash
37+
./vendor/bin/pest --update-snapshots
38+
```
39+
3040
### PHPUnit 12 Changes
3141

3242
> Likelihood Of Impact: Medium

0 commit comments

Comments
 (0)