import { render, screen } from "@testing-library/react";
import App from "./App.jsx";

vi.mock("./lib/api.js", () => ({
  getOperations: () => Promise.resolve({ operations: [] }),
  listStates: () => Promise.resolve({ states: [] }),
  uploadImage: vi.fn(),
  applyStateOperation: vi.fn(),
  combineStates: vi.fn(),
  deleteState: vi.fn()
}));

describe("App real render", () => {
  it("mounts without mocking third-party components", () => {
    render(<App />);
    expect(screen.getByText("Image Processing Workspace")).toBeInTheDocument();
  });
});
