Skip to content

Commit ff2efd2

Browse files
vassudanaguntatargos
authored andcommitted
doc: fix links in test.md
Links explaining the various target file-related `run([options])` pointed to the wrong section. PR-URL: #58876 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
1 parent 2b34867 commit ff2efd2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/api/test.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,16 +1360,16 @@ changes:
13601360
If `false`, it would only run one test file at a time.
13611361
**Default:** `false`.
13621362
* `cwd`: {string} Specifies the current working directory to be used by the test runner.
1363-
Serves as the base path for resolving files according to the [test runner execution model][].
1363+
Serves as the base path for resolving files as if [running tests from the command line][] from that directory.
13641364
**Default:** `process.cwd()`.
13651365
* `files`: {Array} An array containing the list of files to run.
1366-
**Default:** matching files from [test runner execution model][].
1366+
**Default:** Same as [running tests from the command line][].
13671367
* `forceExit`: {boolean} Configures the test runner to exit the process once
13681368
all known tests have finished executing even if the event loop would
13691369
otherwise remain active. **Default:** `false`.
13701370
* `globPatterns`: {Array} An array containing the list of glob patterns to
13711371
match test files. This option cannot be used together with `files`.
1372-
**Default:** matching files from [test runner execution model][].
1372+
**Default:** Same as [running tests from the command line][].
13731373
* `inspectPort` {number|Function} Sets inspector port of test child process.
13741374
This can be a number, or a function that takes no arguments and returns a
13751375
number. If a nullish value is provided, each process gets its own port,
@@ -3951,6 +3951,7 @@ Can be used to abort test subtasks when the test has been aborted.
39513951
[code coverage]: #collecting-code-coverage
39523952
[describe options]: #describename-options-fn
39533953
[it options]: #testname-options-fn
3954+
[running tests from the command line]: #running-tests-from-the-command-line
39543955
[stream.compose]: stream.md#streamcomposestreams
39553956
[subtests]: #subtests
39563957
[suite options]: #suitename-options-fn

0 commit comments

Comments
 (0)