fix(docs): update test command flag from -f to -i

The `-f` flag on `tree-sitter test` seems to have been removed or
replaced with a `-i, --include` flag. This PR updates the "Writing Tests"
page to reflect this change.
This commit is contained in:
Jon Shea 2025-03-04 17:34:55 -05:00 committed by Will Lillis
parent 1850762118
commit ec3a889758

View file

@ -77,10 +77,10 @@ These tests are important. They serve as the parser's API documentation, and the
to verify that everything still parses correctly.
By default, the `tree-sitter test` command runs all the tests in your `test/corpus/` folder. To run a particular test, you
can use the `-f` flag:
can use the `-i` flag:
```sh
tree-sitter test -f 'Return statements'
tree-sitter test -i 'Return statements'
```
The recommendation is to be comprehensive in adding tests. If it's a visible node, add it to a test file in your `test/corpus`