diff --git a/src/lib/components/addons/tests/AddOnListItem.test.ts b/src/lib/components/addons/tests/AddOnListItem.test.ts index c8f19b013..b3a1c2d7e 100644 --- a/src/lib/components/addons/tests/AddOnListItem.test.ts +++ b/src/lib/components/addons/tests/AddOnListItem.test.ts @@ -6,6 +6,8 @@ import { addon, premiumAddon } from "@/test/fixtures/addons"; test("AddOnListItem", () => { const result = render(AddOnListItem, { addon }); expect(result.getByRole("heading")).toHaveTextContent(addon.name); + expect(result.container).toMatchSnapshot(); const premium = render(AddOnListItem, { addon: premiumAddon }); expect(premium.getByRole("status")).toHaveTextContent("Premium"); + expect(premium.container).toMatchSnapshot(); }); diff --git a/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap b/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap new file mode 100644 index 000000000..b716b20e9 --- /dev/null +++ b/src/lib/components/addons/tests/__snapshots__/AddOnListItem.test.ts.snap @@ -0,0 +1,315 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[`AddOnListItem 1`] = ` +
+ + +`; + +exports[`AddOnListItem 2`] = ` + + + + +`;