function test
test(options?: DaemonRunOptions): Task<RunResult, Client.DaemonRunFailure>

Runs the suite inside this project's daemon and resolves with the same RunResult a local run would produce — reusing the daemon's browser and warm bundle instead of paying for a fresh one.

Spawns the daemon if one isn't running, so a first call is not measurably faster than test; every call after it is.

DaemonRunOptions is narrower than the local UserRunOptions by exactly what cannot cross a process boundary: plugin objects and reporter instances. console still works — the daemon's text is streamed back and written there.

import { test as testOnDaemon } from './daemon.ts';

// Defined, not invoked: dispatches a real run to the daemon.
async function fastCheck() {
  const result = await testOnDaemon({ inputs: ['test/'] });
  return result.ok;
}

Parameters

optional
options: DaemonRunOptions

Return Type

Task<RunResult, Client.DaemonRunFailure>

Usage

import { test } from "lib/api/daemon.ts";