type TestResult
An object that represents a single test result, part of TestResultsData.
type TestResult = {
name: string;
state: TestState;
time: number;
logs?: string;
error?: string;
stack?: string;
}Description
This object is returned as part of TestResultsData by getTestResults(). It represents the state and/or outcome of a single test, using the following properties:
name— The name of the test, including scope(s) separated by::.state— The test state, one of TestState.time— The total time taken by the test, in milliseconds.logs— A string containing log output, if any.error— An error message, if any.stack— The call stack associated with the error, if available.
