Skip to content

Commit 9098093

Browse files
doc: add fullName property to SuiteContext
Add documentation for the missing fullName property in SuiteContext. This property returns the name of the suite and each of its ancestors, separated by '>'. The property has been available since v22.3.0 but was missing from the documentation. Fixes: nodejs#60757 PR-URL: nodejs#60762 Reviewed-By: René <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 23c58f0 commit 9098093

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

doc/api/test.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3667,7 +3667,9 @@ the path of the root test file.
36673667
### `context.fullName`
36683668

36693669
<!-- YAML
3670-
added: v22.3.0
3670+
added:
3671+
- v22.3.0
3672+
- v20.16.0
36713673
-->
36723674

36733675
The name of the test and each of its ancestors, separated by `>`.
@@ -3970,6 +3972,16 @@ The absolute path of the test file that created the current suite. If a test
39703972
file imports additional modules that generate suites, the imported suites will
39713973
return the path of the root test file.
39723974

3975+
### `context.fullName`
3976+
3977+
<!-- YAML
3978+
added:
3979+
- v22.3.0
3980+
- v20.16.0
3981+
-->
3982+
3983+
The name of the suite and each of its ancestors, separated by `>`.
3984+
39733985
### `context.name`
39743986

39753987
<!-- YAML

0 commit comments

Comments
 (0)