From 9b446de8a536330ad75e12953e07a24291d12913 Mon Sep 17 00:00:00 2001 From: Bert Heyman Date: Mon, 27 Jan 2025 10:28:20 +0100 Subject: [PATCH] Add docs for todo() method Mentioned in the Pest 2 accnouncement: https://pestphp.com/docs/announcing-pest2 --- skipping-tests.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/skipping-tests.md b/skipping-tests.md index 1aabbaa..0340a4e 100644 --- a/skipping-tests.md +++ b/skipping-tests.md @@ -77,6 +77,16 @@ beforeEach(function () { })->skip(); ``` +## Creating todos + +You might want to add a couple of empty tests to make sure you don't forget to add them later. The `todo()` can be useful in this situation. + +```php +it('has home', function () { + // +})->todo(); +``` + --- As your codebase expands, it's advisable to consider enhancing the speed of your test suite. To assist you with that, we offer comprehensive documentation on optimizing your test suite: [Optimizing Tests](/docs/optimizing-tests)