suiteHint(cwd: string,entry: string,relativeTo?: (from: string,to: string) => string): string
The qunitx <file> line the suite warning suggests, with forward slashes.
The mirror of scriptHint in the suite command, and forward-slashed for the same reason: the
hint's whole value is that it pastes back into a shell, and path.relative answers in the host's
separator — which on Windows echoes test\\cart-test.ts at someone who typed test/cart-test.ts.
relativeTo is injected so the Windows shape is provable from a POSIX host.
import path from 'node:path'; import { suiteHint } from './run.ts'; suiteHint('/proj', '/proj/test/cart-test.ts'); // 'qunitx test/cart-test.ts' suiteHint('D:\\proj', 'D:\\proj\\test\\cart-test.ts', path.win32.relative); // 'qunitx test/cart-test.ts'