function browserLog
browserLog(
config: Config,
): void

Emits one console.* call or uncaught error from the page under test. Rendered verbatim — no # prefix — because it is the page's output, not qunitx's, and prefixing it would corrupt whatever the page was deliberately printing.

import * as Reporter from './index.ts';

import type { Config } from '../types.ts';

// Defined, not invoked: writes the page's own line to the run's output.
function forward(config: Config) {
  Reporter.browserLog(config, { type: 'error', text: 'boom', args: [] });
}

Parameters

Return Type

void

Usage

import { browserLog } from "lib/reporters/index.ts";