Skip to content

Interface: ScanSourceOptions ​

Inline

Properties ​

code ​

code: string


relativeFilePath ​

relativeFilePath: string

Path of the file from the project root, used in the output and in ids.


framework ​

framework: "playwright" | "vitest" | "jest" | "mocha" | "jasmine" | "cypress" | "webdriverio" | "node" | "bun"


frameworkVersion? ​

optional frameworkVersion?: string | null

The framework version whose rules apply. The newest rules apply when it is missing.


comments? ​

optional comments?: "all" | "non-active" | "none"

Which tests get the comments above them. Defaults to non-active.


expandCases? ​

optional expandCases?: boolean

One test or describe per case of a .each or .for table and per pass of a loop whose values the scan can work out, each with the title the runner gives it. Defaults to false: one record per declaration.

Documentation for test-inventory 0.12.2. Released under the MIT License.