interface NoticeOptions

Options a diagnostic can carry beyond its text. Both default to the CLI's long-standing behaviour, so only the handful of call sites that need something else say so.

Properties

optional
raw: boolean

Write the message verbatim rather than as a # -prefixed TAP comment. For pre-formatted blocks — the coverage table, a stack trace — whose own layout is the point.

optional
stream: "output" | "error" | "both"

Which of the run's two streams the default rendering goes to. output by default.

Usage

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