import { render, screen } from "@testing-library/react" import { beforeEach, describe, expect, it, vi } from "vitest" import type { BaseEffect } from "../../types" import { EffectPreview } from "../effect-preview" // Мокаем react-i18next vi.mock("react-i18next", () => ({ useTranslation: () => ({ t: (key: string) => key, i18n: { language: "ru" }, }), })) // Мокаем все зависимости vi.mock("@/features", () => ({ ApplyButton: ({ children, ...props }: any) => ( ), })) vi.mock("@/features/browser/components/layout/add-media-button", () => ({ AddMediaButton: (props: any) =>