A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
import { render, screen } from "@testing-library/react";
import { describe, expect, it } from "vite-plus/test";
import { Alert } from "./alert";
describe("Alert", () => {
it("announces only errors", () => {
const { rerender } = render(<Alert variant="error">Couldn't reach OpenAI.</Alert>);
expect(screen.getByRole("alert")).toHaveTextContent("Couldn't reach OpenAI.");
rerender(<Alert variant="info">Job match uses the posting from Lumen Health.</Alert>);
expect(screen.getByText("Job match uses the posting from Lumen Health.")).toBeInTheDocument();
expect(screen.queryByRole("alert")).not.toBeInTheDocument();
});
});