From 3a84b6db071702f7b24815cd1e8a0138d4333057 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 3 Feb 2025 21:52:07 +0100 Subject: [PATCH] test snapshot --- src/Components/Input/TextInput.spec.tsx | 2 +- .../Input/__snapshots__/TextInput.spec.tsx.snap | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/Components/Input/__snapshots__/TextInput.spec.tsx.snap diff --git a/src/Components/Input/TextInput.spec.tsx b/src/Components/Input/TextInput.spec.tsx index 49b90d34..95035b42 100644 --- a/src/Components/Input/TextInput.spec.tsx +++ b/src/Components/Input/TextInput.spec.tsx @@ -6,6 +6,6 @@ import { TextInput } from './TextInput' describe('', () => { it('renders properly', () => { const wrapper = render() - expect(wrapper).toBeTruthy() + expect(wrapper.container.firstChild).toMatchSnapshot() }) }) diff --git a/src/Components/Input/__snapshots__/TextInput.spec.tsx.snap b/src/Components/Input/__snapshots__/TextInput.spec.tsx.snap new file mode 100644 index 00000000..cd4f09a0 --- /dev/null +++ b/src/Components/Input/__snapshots__/TextInput.spec.tsx.snap @@ -0,0 +1,15 @@ +// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html + +exports[` > renders properly 1`] = ` +
+ +
+`;