Skip to content

Commit

Permalink
Update pest3-now-available.md
Browse files Browse the repository at this point in the history
Source diving told me that ```printer``` method doesn't exist (anymore). ```theme``` is used instead. Am I right?
  • Loading branch information
edwinheij authored Sep 10, 2024
1 parent c6b50cf commit eec4701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pest3-now-available.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ In Pest 3, we've introduced a new configuration API that is more intuitive and e
+pest()->extends(TestCase::class)->use(RefreshDatabase::class)->in('Features');

-uses()->compact();
+pest()->printer()->compact();
+pest()->theme()->compact();
```

And of course, any method that was available on the `uses()` API, like `->beforeEach()` or `->group()` is still available on the new `pest()` configuration API; we've just made it more intuitive and easier to use.
Expand Down

0 comments on commit eec4701

Please sign in to comment.