executable-stories-react 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -824,6 +824,23 @@ function ReportStepItem({
824
824
  children: step.errorMessage
825
825
  }
826
826
  ) : null,
827
+ step.expected !== void 0 || step.actual !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
828
+ "dl",
829
+ {
830
+ "data-slot": "step-comparison",
831
+ className: "mt-1.5 ml-6 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 font-mono text-xs",
832
+ children: [
833
+ step.expected !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
834
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("dt", { className: "text-muted-foreground", children: "Expected" }),
835
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("dd", { className: "overflow-x-auto whitespace-pre-wrap text-pass", children: step.expected })
836
+ ] }) : null,
837
+ step.actual !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
838
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("dt", { className: "text-muted-foreground", children: "Actual" }),
839
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("dd", { className: "overflow-x-auto whitespace-pre-wrap text-fail", children: step.actual })
840
+ ] }) : null
841
+ ]
842
+ }
843
+ ) : null,
827
844
  step.docEntries.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { "data-es-docs": true, className: "mt-2 ml-6", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(ReportDocEntries, { entries: step.docEntries }) }) : null
828
845
  ]
829
846
  }
@@ -2587,6 +2604,14 @@ var story_report_v1_default = {
2587
2604
  errorMessage: {
2588
2605
  type: "string"
2589
2606
  },
2607
+ expected: {
2608
+ type: "string",
2609
+ description: "Serialized expected value of the failed assertion. Present only when the host framework reports one."
2610
+ },
2611
+ actual: {
2612
+ type: "string",
2613
+ description: "Serialized actual (observed) value of the failed assertion. Present only when the host framework reports one."
2614
+ },
2590
2615
  mode: {
2591
2616
  $ref: "#/$defs/StepMode"
2592
2617
  },