/* Copyright 2026 Marimo. All rights reserved. */ import { render, screen } from "@testing-library/react"; import { afterEach, describe, expect, it, vi } from "vitest"; import { TooltipProvider } from "@/components/ui/tooltip"; import { DownloadStorage } from "@/core/storage/request-registry"; import { StorageFileViewer } from "../storage-file-viewer"; vi.mock("@/components/editor/cell/useAddCell", () => ({ useAddCodeToNewCell: () => vi.fn(), })); vi.mock("@/plugins/impl/code/LazyAnyLanguageCodeMirror", () => ({ LazyAnyLanguageCodeMirror: ({ value, language, readOnly, }: { value?: string; language?: string; readOnly?: boolean; }) => (