Files
2026-09-01 02:44:39 +02:00

20 lines
601 B
TypeScript

import { render, screen } from "@testing-library/react";
import { describe, expect, it, vi } from "vitest";
import { App } from "../../src/App";
describe("Crypto Tools", () => {
it("renders the local workbench and standard shell", async () => {
vi.stubGlobal(
"fetch",
vi.fn(async () => new Response("Not found", { status: 404 })),
);
render(<App />);
expect(
await screen.findByRole("heading", { name: "Crypto Tools" }),
).toBeVisible();
expect(
await screen.findByText("Memory-only", undefined, { timeout: 10_000 }),
).toBeVisible();
});
});