Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import { describe, it, expect } from "vitest";
import { render, screen } from "@testing-library/react";
describe("@repowise-dev/ui test infrastructure", () => {
it("mounts a React tree under jsdom and resolves jest-dom matchers", () => {
function Hello({ name }: { name: string }) {
return <p data-testid="greeting">Hello, {name}</p>;
}
render(<Hello name="repowise" />);
const node = screen.getByTestId("greeting");
expect(node).toBeInTheDocument();
expect(node).toHaveTextContent("Hello, repowise");
});
});