import { describe, it, expect, afterEach } from "vitest";
import * as Gtk from "@gtkx/ffi/gtk";
import { cleanup, render, screen } from "@gtkx/testing";
import App from "../src/app.js";

afterEach(async () => {
    await cleanup();
});

describe("App", () => {
    it("renders the increment button", async () => {
        await render(<App />, { wrapper: false });
        const button = await screen.findByRole(Gtk.AccessibleRole.BUTTON, { name: "Increment" });
        expect(button).toBeDefined();
    });
});
