setupHistory(server: REPLServer,interactive: boolean): void
Points history at ~/.qunitx_repl_history, honouring QUNITX_REPL_HISTORY (an empty value
turns it off). Only in a terminal — setupHistory is a no-op without one, and a scripted
invocation has no business writing to a history file.
import { setupHistory } from './history.ts'; import type { REPLServer } from 'node:repl'; // Defined, not invoked: it opens a file in the developer's home directory. function example(server: REPLServer) { setupHistory(server, false); // a pipe keeps no history }