Name of the diagnostics_channel that ignore publishes to on Node and Deno —
subscribe with the platform API, no qunitx registry involved. Messages are
{ context: string, error: unknown }. Browsers have no channel; use onIgnored.
import * as Failure from './failure.ts'; import diagnostics_channel from 'node:diagnostics_channel'; const seen: unknown[] = []; const collect = (message: unknown) => seen.push(message); diagnostics_channel.subscribe(Failure.IGNORED_CHANNEL_NAME, collect); await Promise.reject(new Error('boom')).catch(Failure.ignore('cleanup')); seen; // [{ context: 'cleanup', error: Error('boom') }] diagnostics_channel.unsubscribe(Failure.IGNORED_CHANNEL_NAME, collect);