diff --git a/doc/api/test.md b/doc/api/test.md index 716fe8c5f62767..e0d4bee17a7483 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3204,6 +3204,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 root 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 root test file. + ### `context.name`