diff --git a/packages/cli/src/commands/snapshot.selfClosedMedia.test.ts b/packages/cli/src/commands/snapshot.selfClosedMedia.test.ts new file mode 100644 index 0000000000..9e2077c6d8 --- /dev/null +++ b/packages/cli/src/commands/snapshot.selfClosedMedia.test.ts @@ -0,0 +1,29 @@ +import { describe, expect, it } from "vitest"; +import { selfClosedMediaWarning } from "./snapshot.js"; + +const page = (media: string) => ` +
+${media} +

Hello

`; + +describe("selfClosedMediaWarning", () => { + it("names the self-closed clips and what they do to the still", async () => { + const clips = Array.from( + { length: 3 }, + (_, i) => `