interface FoundTest

One test found by the static scan, named exactly as QUnit would name it.

Structured rather than pre-joined: modules and line are what a caller can act on, and the display forms ('A > B', path#12) are one join away wherever they are actually printed.

Properties

fullName: string

"Module > Sub: test name" — the string a filter matches against.

name: string

The test's own name.

modules: string[]

The QUnit module path it is declared under; empty for a top-level test.

file: string

Absolute path of the file it was declared in — used to apply that file's line targets.

line: number

1-based line of the declaration.

Usage

import { type FoundTest } from "lib/commands/search.ts";