interface FailedTestRecord

One failed test, kept for display and future -t (test-name filter) wiring.

import * as FailureCache from './failure-cache.ts';

const sample: FailureCache.FailedTestRecord = {
  file: 'test/auth-test.ts',
  module: 'auth > login',
  testName: 'rejects a bad password',
};

Properties

file: string | null

Source file the failure was attributed to (relative to projectRoot), or null when unattributable.

module: string

QUnit module path, >-joined; '' for a top-level test.

testName: string

The test's own name.

Usage

import { type FailedTestRecord } from "lib/utils/failure-cache.ts";