import { readFileSync } from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; import { describe, expect, it } from "vitest"; describe("inline resource container", () => { const currentDir = path.dirname(fileURLToPath(import.meta.url)); const filePath = path.join(currentDir, "inline-resource-container.tsx"); const source = readFileSync(filePath, "utf8"); it("uses the shared finding-group resource state hook", () => { expect(source).toContain("useFindingGroupResourceState"); expect(source).not.toContain("useInfiniteResources"); }); });