File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ The Node.js test runner can be invoked from the command line by passing the
350350node --test
351351```
352352
353- By default Node.js will run all files matching these patterns:
353+ By default, Node.js will run all files matching these patterns:
354354
355355* ` **/*.test.?(c|m)js `
356356* ` **/*-test.?(c|m)js `
@@ -362,9 +362,11 @@ By default Node.js will run all files matching these patterns:
362362Alternatively, one or more glob patterns can be provided as the
363363final argument(s) to the Node.js command, as shown below.
364364Glob patterns follow the behavior of [ ` glob(7) ` ] [ ] .
365+ The glob patterns should be enclosed in double quotes on the command line to
366+ prevent shell expansion, which can reduce portability across systems.
365367
366368``` bash
367- node --test ** /* .test.js ** /* .spec.js
369+ node --test " **/*.test.js" " **/*.spec.js"
368370```
369371
370372Matching files are executed as test files.
You can’t perform that action at this time.
0 commit comments