interface RunStartInfo

Run-scope counts. fileCount === null means "counts unknown at this point" (watch mode, where the header is emitted per browser connection rather than per file batch).

const batch: RunStartInfo = { fileCount: 3, groupCount: 2 }; // "3 test files across 2 groups"
const watch: RunStartInfo = { fileCount: null, groupCount: null }; // counts unknown
batch.fileCount; // 3
watch.fileCount; // null

Properties

fileCount: number | null

Test files in this run, or null when not known at announce time.

groupCount: number | null

Concurrent groups the files were split across, or null alongside a null fileCount.

Usage

import { type RunStartInfo } from "lib/api/index.ts";