// Structured Data in Base (ADR 0028): the safe serializer and the // BreadcrumbList that Breadcrumbs emits when, and only when, it is asked to. import { describe, expect, it } from "vitest"; import { Breadcrumbs, absoluteUrl, breadcrumbList, isAbsoluteUrl, jsonLdScript, serializeJsonLd, } from "@reddb-io/design-system/base"; import { render } from "./mount"; describe("serializeJsonLd", () => { it("escapes everything that could close the script element or open a comment", () => { const hostile = { "@type": "Thing", name: "