variable DaemonDisconnected

The daemon accepted the run and then dropped the connection without a terminal message.

Previously indistinguishable from a normal failing run: close and error both resolve(1), exactly like done with exitCode: 1. A daemon that crashed mid-run was therefore reported to the user — and to CI — as "one test failed", with no hint that no tests had actually been reported at all.

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

Client.DaemonDisconnected({ reason: 'close' }).message;
// 'daemon closed the connection (close) without reporting a result'

Type

Failure.FailureFactory<
"DaemonDisconnected",
{ reason: "close" | "error" | "no-result"; }
>

Usage

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