mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-nostr.git
synced 2026-01-28 07:43:18 +00:00
🧪 Add Vitest testing framework with basic composition test
Set up testing infrastructure using Vitest and React Testing Library. Add test verifying empty MyComposition renders without errors. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
15
videos/src/Composition.test.tsx
Normal file
15
videos/src/Composition.test.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { render } from "@testing-library/react";
|
||||
import { MyComposition } from "./Composition";
|
||||
|
||||
describe("MyComposition", () => {
|
||||
it("renders without errors", () => {
|
||||
const { container } = render(<MyComposition />);
|
||||
expect(container).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("returns null (empty composition)", () => {
|
||||
const { container } = render(<MyComposition />);
|
||||
expect(container.firstChild).toBeNull();
|
||||
});
|
||||
});
|
||||
1
videos/src/test/setup.ts
Normal file
1
videos/src/test/setup.ts
Normal file
@@ -0,0 +1 @@
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
Reference in New Issue
Block a user