interface LineTargetResolution

Result of resolving a file's line targets into selectors, plus any diagnostics to surface.

import * as LineTargets from './line-targets.ts';

const narrowed: LineTargets.LineTargetResolution = {
  selectors: [{ module: 'Cart', test: 'adds an item' }],
  warnings: [],
};
narrowed.selectors; // null here would mean: run the whole file unfiltered

Properties

Selectors to apply, or null to run the whole file unfiltered.

warnings: string[]

#-prefixed lines to print — always explains why a target did not narrow as asked.

Usage

import { type LineTargetResolution } from "lib/selection/line-targets.ts";