interface FailureCachePayload

On-disk shape of tmp/.qunitx-last-failures.json.

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

const payload: FailureCache.FailureCachePayload = {
  browser: 'chromium',
  files: ['/proj/test/auth-test.ts'],
  tests: [{ file: 'test/auth-test.ts', module: 'auth', testName: 'logs in' }],
};

Properties

browser: string

Browser engine the failures were observed in.

files: string[]

Absolute paths of test files that contained at least one failure — drives --only-failed.

Per-test metadata for the failures above.

Usage

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