Skip to content

Commit 18df48b

Browse files
committed
fix: update only api to be on pest config object
1 parent 342e782 commit 18df48b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

filtering-tests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ During development, you may want to focus on running specific tests while exclud
104104

105105
#### Running Only Tests in a File
106106

107-
When working on a specific feature, you can mark all tests in a file to run exclusively by calling the `only()` function at the top of your test file:
107+
When working on a specific feature, you can mark all tests in a file to run exclusively by calling the `pest()->only()` function at the top of your test file:
108108

109109
```php
110110
<?php
111111

112-
only();
112+
pest()->only();
113113

114114
test('first test', function () {
115115
// This will run
@@ -120,7 +120,7 @@ test('second test', function () {
120120
});
121121
```
122122

123-
All tests in files with `only()` will run, while tests in other files will be skipped.
123+
All tests in files with `pest()->only()` will run, while tests in other files will be skipped.
124124

125125
#### Running a Single Test
126126

0 commit comments

Comments
 (0)