UNPKG

histoire

Version:

A fast story book powered by Vite

20 lines • 1.09 kB
import type { TestCaseDto, TestResultsPage, TestUnavailableReason } from '@histoire/cli/protocol/tests'; /** Empty page explaining why nothing is readable. Never an instruction to rerun. */ export declare function unavailablePage(operationId: string, unavailable: TestUnavailableReason): TestResultsPage; /** * Reads one page of retained cases: at most `limit` (<= 100) entries and * `TEST_PAGE_BYTES` serialized bytes, so a page always fits one IPC frame. * Failures sort first, which makes the failed-only filter a prefix. * @param operationId Operation the cases belong to. * @param cases Retained cases, failures first. * @param options Cursor (index of the first case), page size and filter. * @param options.cursor Opaque cursor from the previous page. * @param options.limit Cases per page. * @param options.failedOnly Restrict to failed cases. */ export declare function readCasesPage(operationId: string, cases: readonly TestCaseDto[], options: { cursor?: string; limit?: number; failedOnly?: boolean; }): TestResultsPage; //# sourceMappingURL=paging.d.ts.map