test snapshot

This commit is contained in:
Moriz Wahl 2025-02-03 21:52:07 +01:00
parent 42e03a4296
commit 3a84b6db07
2 changed files with 16 additions and 1 deletions

View File

@ -6,6 +6,6 @@ import { TextInput } from './TextInput'
describe('<TextInput />', () => { describe('<TextInput />', () => {
it('renders properly', () => { it('renders properly', () => {
const wrapper = render(<TextInput />) const wrapper = render(<TextInput />)
expect(wrapper).toBeTruthy() expect(wrapper.container.firstChild).toMatchSnapshot()
}) })
}) })

View File

@ -0,0 +1,15 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
exports[`<TextInput /> > renders properly 1`] = `
<div
class="tw-form-control undefined"
>
<input
class="tw-input tw-input-bordered tw-w-full "
placeholder=""
required=""
type="text"
value=""
/>
</div>
`;