// @vitest-environment jsdom import { readFileSync } from "node:fs"; import { dirname, resolve } from "node:path"; import { fileURLToPath } from "node:url"; import { act } from "react"; import { createRoot, type Root } from "react-dom/client"; import { afterEach, beforeEach, expect, it, vi } from "vitest"; import type { PaperclipQuestionSet } from "@paperclipai/adapter-utils"; import { QuestionForm } from "./QuestionForm"; vi.mock("./TaskChatRichInput", () => ({ TaskChatRichInput: () =>