function newGroup
newGroup(
index?: number,
selectors?: QUnitSelector[]
): GroupState

Fresh per-group state. One per concurrent group; the group spread in runConcurrentMode replaces state.group with this so groups never share the slots inside it.

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

const group = RunState.newGroup(2);
group.index; // 2
group.phase; // 'bundling'

Parameters

optional
index: number = 0
optional
selectors: QUnitSelector[]

Return Type

Usage

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