function run
run(config: Config): Promise<RunOutcome>

Runs the whole suite once in headless Chrome and resolves with its RunOutcome.

import type { run } from './test.ts';
import type { Config } from '../types.ts';
// Defined, not invoked: launches Chrome and runs the whole suite.
async function runSuite(runTests: typeof run, config: Config) {
  const { exitCode } = await runTests(config); // returns; deciding what that means is the caller's
  return exitCode;
}

Parameters

config: Config

Return Type

Promise<RunOutcome>

Usage

import { run } from "lib/commands/test.ts";