renamedNamespaces(loaded: ReadonlyArray<readonly [string, readonly string[]]>): string[]
Preloads that did not get the name they asked for, and what they answer to instead.
A file goes into scope under a name worked out from its path, and two can want the same one:
qunitx repl lib/task/* has index.ts named for the directory holding it and task.ts named
for itself, both wanting Task. One keeps it and the other is qualified by as much of its path
as it takes — TaskTask — so nothing is unreachable, but nobody would guess the second name
without being told.
Read off what actually happened rather than recomputed: the name a file went into scope under is the first thing the harness reports for it, so a file whose name differs from the one its path asks for is exactly a file that lost a clash.
import { renamedNamespaces } from './index.ts'; renamedNamespaces([['lib/task/task.ts', ['TaskTask']]]); // ['lib/task/task.ts is TaskTask …'] renamedNamespaces([['lib/task/index.ts', ['Task']]]); // [] — it got what it asked for