PfilePath
Bun

property

test.SuiteContext.filePath

readonly filePath: undefined | string

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.