npm install @testing-library/preactimport { render, screen } from "@testing-library/preact";import { Counter } from "./Counter"; render(<Counter />);screen.getByRole("button", { name: /count/i });@testing-library/preactTesting Library integration focused on user-centric testing for Preact components.
Built for Preact and does not require a React compatibility layer.