function buildQUnitFullName
buildQUnitFullName(
modulePath: string,
testName: string
): string

The string a filter is matched against: "Module: test name", with nested modules already joined by " > ". A top-level test has an empty module name, giving ": test name" — which is QUnit's own behaviour, not a quirk of this port.

buildQUnitFullName('Cart > totals', 'sums line items'); // 'Cart > totals: sums line items'
buildQUnitFullName('', 'boots'); // ': boots' — QUnit's own spelling for a top-level test

Parameters

modulePath: string
testName: string

Return Type

string

Usage

import { buildQUnitFullName } from "lib/selection/qunit-matcher.ts";