run(options: DaemonRunOptions,sink?: Console): Task<RunResult, DaemonRunFailure>
Runs the suite inside the daemon and answers with the same RunResult a local run produces. The one to reach for; runArgv is the CLI's narrower variant.
Streams the daemon's text into console when one is given, so a caller that asked for a
reporter still sees its output locally, and reads the result chunk the daemon sends just
before done.
import * as Client from './client.ts'; import * as Failure from '../../result/failure.ts'; // Defined, not invoked: dispatches a real run to the project's daemon. async function runOnDaemon() { const outcome = await Client.run({ inputs: ['test/'] }).result(); return Failure.is(outcome) ? null : outcome.counts; }
options: DaemonRunOptions
optional
sink: Console