interface DeclarationScan

Every declaration found in a file, plus whether it uses only().

const scan: DeclarationScan = {
  declarations: [{ kind: 'module', name: 'Cart', startLine: 1, endLine: 20, parent: null }],
  hasOnly: false,
};
scan.hasOnly; // false — no only() call, so a line target can still match

Properties

All test/module declarations, sorted by start line, with parent links resolved.

hasOnly: boolean

True when the file calls only(), which makes QUnit ignore every other test in the run.

Usage

import { type DeclarationScan } from "lib/selection/parse-test-declarations.ts";