import { $, component$ } from "@builder.io/qwik"; import { QwikCityMockProvider } from "@builder.io/qwik-city"; import { ExampleTest } from "./example"; import { useExampleLoader } from "../../loaders/example.loader"; import { useExampleAction } from "../../actions/example.action"; const Template = component$((props: { flag: boolean }) => { const loadersMock = [ { loader: useExampleLoader, data: "Loader Data", }, ]; const actionStub = $(() => cy.stub().as("actionStub"))(); const actionsMock = [ { action: useExampleAction, handler: $(async () => { await actionStub.then((_) => _()); return { status: 200, result: "Action Data" }; }), }, ]; return ( ); }); it("should render ⭐", () => { cy.mount(