import { cleanup, fireEvent, render, screen } from "@testing-library/react"; import React from "react"; import { afterEach, describe, expect, it, vi } from "vitest"; import { BlockRenderer } from "../src/renderer.js"; import type { BlockInteraction, FormBlock } from "../src/types.js"; // ── Mocks ──────────────────────────────────────────────────────────────────── vi.mock("@cloudflare/kumo", () => ({ Button: ({ children, onClick, variant, type }: any) => ( ), Badge: ({ children }: any) => {children}, Input: ({ label, value, defaultValue, onChange, onBlur, placeholder, type, min, max }: any) => (
), InputArea: ({ label, defaultValue, onChange, onBlur, placeholder }: any) => (