Skip to content

Commit 0fc98eb

Browse files
committed
Add explanation of root_ignore_files to readme
1 parent ed9fdbb commit 0fc98eb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

+10
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,16 @@ require("neotest-phpunit")({
108108
})
109109
```
110110

111+
If there are projects you don't want discovered, you can instead set `root_ignore_files` to ignore any matching projects.
112+
113+
For example, if your project uses Pest and the appropriate [neotest adapter](https://github.com/V13Axel/neotest-pest), you'll need to set:
114+
115+
```lua
116+
require("neotest-phpunit")({
117+
root_ignore_files = { "tests/Pest.php" }
118+
})
119+
```
120+
111121
### Filtering directories
112122

113123
By default, the adapter will search test files in all dirs in the root with the exception of `node_modules` and `.git`. You can change this with:

0 commit comments

Comments
 (0)