import { shallowMount } from "@vue/test-utils"; import funnelHeader from "./funnel-header"; describe("funnelHeader", () => { test("renders the logo image", () => { // Arrange // Act const wrapper = shallowMount(funnelHeader, { setData: { imageSrc: "image_url", }, }); wrapper.vm.initializeComponent(cmsContent); // Assert expect(wrapper.find("img")).toBeTruthy(); wrapper.unmount(); }); }); //Mock CMS content const cmsContent = { imageSrc: "image_url", };