18 lines
464 B
React
18 lines
464 B
React
// @vitest-environment jsdom
|
|
|
|
import { render, screen } from "@testing-library/react";
|
|
import { describe, expect, it } from "vitest";
|
|
|
|
function TestShell() {
|
|
return <main aria-label="application shell">ready</main>;
|
|
}
|
|
|
|
describe("component test level", () => {
|
|
it("renders an accessible application shell", () => {
|
|
render(<TestShell />);
|
|
expect(screen.getByRole("main", { name: "application shell" })).toHaveTextContent(
|
|
"ready",
|
|
);
|
|
});
|
|
});
|