import { render, screen } from "@testing-library/react"; import userEvent from "@testing-library/user-event"; import { describe, expect, it, vi } from "vitest"; import type { IssueAttributes } from "@/types/issues"; vi.mock("next/navigation", () => ({ useRouter: () => ({ refresh: vi.fn() }) })); vi.mock("@/components/issues/issue-graph", () => ({ IssueGraph: () =>
graph
, })); import { IssueAttackPath } from "./issue-attack-path"; const issue = { legs: {} } as IssueAttributes; describe("IssueAttackPath", () => { it("says there is nothing to draw, not a load error, without resources", () => { // Given: no resources, and findings that could not load without a scan render(