import type { StoryReport } from "executable-stories-core"; export const minimalReport: StoryReport = { schemaVersion: "1.0", runId: "run-1", startedAtMs: 1700000000000, finishedAtMs: 1700000001000, durationMs: 1000, projectRoot: "/project", summary: { total: 0, passed: 0, failed: 0, skipped: 0, pending: 0, durationMs: 0 }, features: [], }; export const passingReport: StoryReport = { schemaVersion: "1.0", runId: "run-2", startedAtMs: 1700000000000, finishedAtMs: 1700000001000, durationMs: 1000, projectRoot: "/project", summary: { total: 1, passed: 1, failed: 0, skipped: 0, pending: 0, durationMs: 1000 }, features: [ { id: "feature-todos", title: "Todos", sourceFile: "src/todos.story.test.ts", summary: { total: 1, passed: 1, failed: 0, skipped: 0, pending: 0, durationMs: 1000 }, scenarios: [ { id: "feature-todos--add-a-todo", title: "Add a todo", status: "passed", durationMs: 1000, tags: ["smoke"], retry: 0, retries: 0, docEntries: [{ kind: "note", text: "Happy path validated.", phase: "static" }], steps: [ { id: "feature-todos--add-a-todo--step-0", index: 0, keyword: "Given", text: "no todos exist", status: "passed", durationMs: 200, docEntries: [], }, { id: "feature-todos--add-a-todo--step-1", index: 1, keyword: "When", text: "the user adds 'buy milk'", status: "passed", durationMs: 600, docEntries: [], }, { id: "feature-todos--add-a-todo--step-2", index: 2, keyword: "Then", text: "the list contains 'buy milk'", status: "passed", durationMs: 200, docEntries: [], }, ], attachments: [], }, ], }, ], }; export const mixedReport: StoryReport = { schemaVersion: "1.0", runId: "run-3", startedAtMs: 1700000000000, finishedAtMs: 1700000003000, durationMs: 3000, projectRoot: "/project", summary: { total: 3, passed: 1, failed: 1, skipped: 1, pending: 0, durationMs: 3000 }, features: [ { id: "feature-todos", title: "Todos", sourceFile: "src/todos.story.test.ts", summary: { total: 2, passed: 1, failed: 1, skipped: 0, pending: 0, durationMs: 2000 }, scenarios: [ { id: "feature-todos--add", title: "Add", status: "passed", durationMs: 800, tags: [], retry: 0, retries: 0, docEntries: [], steps: [], attachments: [], }, { id: "feature-todos--delete", title: "Delete", status: "failed", durationMs: 1200, tags: [], retry: 1, retries: 2, errorMessage: "Expected list to be empty after deletion", errorStack: "AssertionError: ...", docEntries: [], steps: [ { id: "feature-todos--delete--step-0", index: 0, keyword: "When", text: "the user deletes the todo", status: "failed", durationMs: 1200, errorMessage: "Expected list to be empty after deletion", docEntries: [], }, ], attachments: [], }, ], }, { id: "feature-auth", title: "Auth", sourceFile: "src/auth.story.test.ts", summary: { total: 1, passed: 0, failed: 0, skipped: 1, pending: 0, durationMs: 1000 }, scenarios: [ { id: "feature-auth--login", title: "Login", status: "skipped", durationMs: 1000, tags: ["wip"], tickets: [{ id: "SHOP-77" }], retry: 0, retries: 0, docEntries: [], steps: [], attachments: [], }, ], }, ], };