diff --git a/doc/api/test.md b/doc/api/test.md index 364f300cc99eeb..3172b2c3e87dda 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3209,6 +3209,16 @@ test('top level test', (t) => { }); ``` +### `context.filePath` + + + +The absolute path of the test file that created the current test. If a test file +imports additional modules that generate tests, the imported tests will return +the path of the original test file. + ### `context.fullName` + +The absolute path of the test file that created the current suite. If a test +file imports additional modules that generate suites, the imported suites will +return the path of the original test file. + ### `context.name`