interface UnlistableCounts

Why some declarations could not be listed, split by cause.

Broken out rather than summed, because the three are not the same news: computed names are normal in a parameterised suite, whereas an unparseable file is usually a real problem.

const counts: UnlistableCounts = { total: 3, computedNames: 2, unparseable: 0, silent: 1 };
counts.total === counts.computedNames + counts.unparseable + counts.silent; // true

Properties

total: number

The three below, added up.

Declarations whose name is computed at run time — test(`case ${index}`).

Files that could not be read or parsed at all.

silent: number

Files that parsed but declared no test the scan could see, e.g. via a local alias.

Usage

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