/** * This test ensures all re-exports from the utils barrel file are resolved, * which satisfies the function coverage requirement for the barrel module. */ import { buildPreservedQueryHref, clsx, combineExistingAndNewUTMs, cx, getCampaignProperties, getCookie, getOrganicTrafficUtmParameters, getParsedCookie, getUtmParametersFromURL, getUTMs, label1BoldOptions, removeUTMs, renderContentfulRichText, renderContentfulRichTextTable, setCookie, setUTMs, SpeedCardBg, toDocument, useContentfulRichText, useProcessedChecklist, UTM_PARAM_NAMES, } from "./index"; describe("utils barrel exports", () => { it("exports cx", () => { expect(typeof cx).toBe("function"); }); it("exports clsx", () => { expect(typeof clsx).toBe("function"); }); it("exports SpeedCardBg", () => { expect(typeof SpeedCardBg).toBe("function"); }); it("exports getUTMs", () => { expect(typeof getUTMs).toBe("function"); }); it("exports setUTMs", () => { expect(typeof setUTMs).toBe("function"); }); it("exports removeUTMs", () => { expect(typeof removeUTMs).toBe("function"); }); it("exports getCookie", () => { expect(typeof getCookie).toBe("function"); }); it("exports getParsedCookie", () => { expect(typeof getParsedCookie).toBe("function"); }); it("exports setCookie", () => { expect(typeof setCookie).toBe("function"); }); it("exports getUtmParametersFromURL", () => { expect(typeof getUtmParametersFromURL).toBe("function"); }); it("exports combineExistingAndNewUTMs", () => { expect(typeof combineExistingAndNewUTMs).toBe("function"); }); it("exports getOrganicTrafficUtmParameters", () => { expect(typeof getOrganicTrafficUtmParameters).toBe("function"); }); it("exports getCampaignProperties", () => { expect(typeof getCampaignProperties).toBe("function"); }); it("exports buildPreservedQueryHref", () => { expect(typeof buildPreservedQueryHref).toBe("function"); }); it("exports UTM_PARAM_NAMES", () => { expect(UTM_PARAM_NAMES).toBeDefined(); expect(Array.isArray(UTM_PARAM_NAMES)).toBe(true); }); it("exports toDocument", () => { expect(typeof toDocument).toBe("function"); }); it("exports renderContentfulRichText", () => { expect(typeof renderContentfulRichText).toBe("function"); }); it("exports useContentfulRichText", () => { expect(typeof useContentfulRichText).toBe("function"); }); it("exports renderContentfulRichTextTable", () => { expect(typeof renderContentfulRichTextTable).toBe("function"); }); it("exports useProcessedChecklist", () => { expect(typeof useProcessedChecklist).toBe("function"); }); it("exports label1BoldOptions", () => { expect(label1BoldOptions).toBeDefined(); expect(label1BoldOptions.renderMark).toBeDefined(); }); });