@codesandbox/sandpack-react
Version:
<img style="width:100%" src="https://user-images.githubusercontent.com/4838076/143581035-ebee5ba2-9cb1-4fe8-a05b-2f44bd69bb4b.gif" alt="Component toolkit for live running code editing experiences" />
14 lines (13 loc) • 850 B
TypeScript
import type { Describe } from "./Describes";
import type { Spec } from "./Specs";
import type { SuiteResults, TestResults } from "./Summary";
import type { Test } from "./Tests";
export declare const getFailingTests: (block: Describe | Spec) => Test[];
export declare const getAllTestResults: (specs: Spec[]) => TestResults;
export declare const getSpecTestResults: (spec: Spec) => TestResults;
export declare const getAllSuiteResults: (specs: Spec[]) => SuiteResults;
export declare const getDuration: (specs: Spec[]) => number;
export declare const isEmpty: (block: Spec | Describe) => boolean;
export declare const splitTail: <A>(as: A[]) => [A[], A | undefined];
export declare const flatMap: <A, B>(as: A[], f: (a: A) => B[]) => B[];
export declare const set: (path: string[], value: unknown) => <A extends Record<string, any>>(object: A) => A;