doc: quote test_runner glob parameters
Refs: https://github.com/nodejs/node/issues/52191 PR-URL: https://github.com/nodejs/node/pull/52201 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
This commit is contained in:
parent
1264414700
commit
f1635f442f
@ -350,7 +350,7 @@ The Node.js test runner can be invoked from the command line by passing the
|
||||
node --test
|
||||
```
|
||||
|
||||
By default Node.js will run all files matching these patterns:
|
||||
By default, Node.js will run all files matching these patterns:
|
||||
|
||||
* `**/*.test.?(c|m)js`
|
||||
* `**/*-test.?(c|m)js`
|
||||
@ -362,9 +362,11 @@ By default Node.js will run all files matching these patterns:
|
||||
Alternatively, one or more glob patterns can be provided as the
|
||||
final argument(s) to the Node.js command, as shown below.
|
||||
Glob patterns follow the behavior of [`glob(7)`][].
|
||||
The glob patterns should be enclosed in double quotes on the command line to
|
||||
prevent shell expansion, which can reduce portability across systems.
|
||||
|
||||
```bash
|
||||
node --test **/*.test.js **/*.spec.js
|
||||
node --test "**/*.test.js" "**/*.spec.js"
|
||||
```
|
||||
|
||||
Matching files are executed as test files.
|
||||
|
Loading…
x
Reference in New Issue
Block a user