interface QUnitSelector

One thing a file#34 target selects. test omitted means "this module and everything nested under it" — used for module targets, and as the fallback when a test's name is computed and so cannot be matched exactly.

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

const oneTest: LineTargets.QUnitSelector = { module: 'Cart > totals', test: 'sums line items' };
const wholeModule: LineTargets.QUnitSelector = { module: 'Cart' }; // and everything nested under it

Properties

module: string

Full module path, ' > '-joined. '' for a top-level test.

optional
test: string

Exact test name; omitted to select the whole module and its nested children.

Usage

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