function shouldAutoSpawn
shouldAutoSpawn(): boolean

True iff the user opted in to auto-spawn (QUNITX_DAEMON=1), the invocation is daemon-eligible, and no daemon is running yet — meaning cli should spawn one before dispatching the run.

import * as Client from './client.ts';

// Defined, not invoked: reads env + the on-disk sentinel for process.cwd().
function needsSpawn() {
  return Client.shouldAutoSpawn(); // true → cli spawns the daemon before dispatching
}

Return Type

boolean

Usage

import { shouldAutoSpawn } from "lib/commands/daemon/client.ts";