function create
create(): RunState

Fresh run state for a single qunitx invocation. Built once per run in Config.setup().

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

const state = RunState.create();
state.groupCount; // 1
state.results.counter.total; // 0

Return Type

Usage

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