UNPKG

tdpw

Version:

CLI tool for uploading Playwright test reports to TestDino platform with TestDino storage support

30 lines 1.03 kB
import { z } from 'zod'; /** * Zod schema for validating essential parts of a Playwright JSON report */ declare const PlaywrightReportSchema: z.ZodObject<{ config: z.ZodAny; suites: z.ZodArray<z.ZodAny>; stats: z.ZodObject<{ startTime: z.ZodString; duration: z.ZodNumber; expected: z.ZodNumber; skipped: z.ZodNumber; unexpected: z.ZodNumber; flaky: z.ZodNumber; }, z.core.$strip>; errors: z.ZodOptional<z.ZodArray<z.ZodAny>>; metadata: z.ZodOptional<z.ZodAny>; }, z.core.$strip>; /** * TypeScript type for a validated Playwright report */ export type PlaywrightReport = z.infer<typeof PlaywrightReportSchema>; /** * Read, parse, and validate a Playwright JSON report from disk. * @param jsonPath Absolute path to the Playwright JSON report * @throws ValidationError if reading, parsing, or validation fails */ export declare function parsePlaywrightJson(jsonPath: string): Promise<PlaywrightReport>; export {}; //# sourceMappingURL=parser.d.ts.map