function requestAbort
requestAbort(state: RunState): void

Asks every live server to tell its pages to drop the rest of the QUnit queue, and records that this run was cut short.

The flag is set on intent, not on the browser's acknowledgement, and that is deliberate: an abort that arrives before any page has connected — a signal already aborted, a qq during start-up — would otherwise reach nobody and go unrecorded. WebServer.setup re-sends it to pages that connect afterwards, so the request survives the gap either way.

Cleared by reset at the start of every run, so an abort while idle does not follow the session into its next run.

import * as RunState from './run-state.ts';

const state = RunState.create();
RunState.requestAbort(state);
state.results.aborted; // true — even with no server listening yet

Parameters

state: RunState

Return Type

void

Usage

import { requestAbort } from "lib/setup/run-state.ts";