function toTestResult
toTestResult(details: TestDetails): TestResult

Projects one QUnit testEnd payload into a TestResult. QUnit's fullName is [...modules, testName]; the joined display form matches what filter matches against — modules separated by >, the test name after a : .

toTestResult({ status: 'passed', fullName: ['Cart', 'adds item'], runtime: 2 }).fullName;
// 'Cart: adds item'

Parameters

details: TestDetails

Return Type

Usage

import { toTestResult } from "lib/api/reporter.ts";