function warning
warning(
config: Config,
message: string,
options?: NoticeOptions
): void

Something surprising that did not stop the run — a filter that matched nothing, a flag that does not apply to the chosen browser.

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

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

// Defined, not invoked: writes '# No tests matched Cart' to the run's sink.
function warnNoMatches(config: Config, filter: string) {
  Reporter.warning(config, `No tests matched ${filter}`);
}

Parameters

config: Config
message: string
optional
options: NoticeOptions

Return Type

void

Usage

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