diff --git a/src/Components/Input/TextAreaInput.spec.tsx b/src/Components/Input/TextAreaInput.spec.tsx
new file mode 100644
index 00000000..ab906fb2
--- /dev/null
+++ b/src/Components/Input/TextAreaInput.spec.tsx
@@ -0,0 +1,55 @@
+import { render, screen, fireEvent } from '@testing-library/react'
+import { describe, it, expect, beforeEach, vi } from 'vitest'
+
+import { TagsProvider } from '#components/Map/hooks/useTags'
+
+import { TextAreaInput } from './TextAreaInput'
+
+// import { useTags } from '#components/Map/hooks/useTags'
+
+// vi.mock('#components/Map/hooks/useTags')
+
+describe('', () => {
+ let wrapper: ReturnType
+
+ const updateFormValue = vi.fn()
+
+ beforeEach(() => {
+ vi.clearAllMocks()
+ wrapper = render(
+
+
+ ,
+ )
+ })
+
+ it('renders properly', () => {
+ expect(wrapper.container.firstChild).toMatchSnapshot()
+ })
+
+ describe('handleChange', () => {
+ it('calls updateFormValue with new value', () => {
+ fireEvent.change(screen.getByRole('textbox'), { target: { value: 'test' } })
+ expect(updateFormValue).toBeCalledWith('test')
+ })
+ })
+
+ describe('labelTitle', () => {
+ it('sets label', () => {
+ wrapper.rerender()
+ expect(wrapper.container.firstChild).toMatchSnapshot()
+ })
+ })
+})
diff --git a/src/Components/Input/__snapshots__/TextAreaInput.spec.tsx.snap b/src/Components/Input/__snapshots__/TextAreaInput.spec.tsx.snap
new file mode 100644
index 00000000..48991cae
--- /dev/null
+++ b/src/Components/Input/__snapshots__/TextAreaInput.spec.tsx.snap
@@ -0,0 +1,34 @@
+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+
+exports[` > labelTitle > sets label 1`] = `
+
+
+
+
+`;
+
+exports[` > renders properly 1`] = `
+
+
+
+`;
diff --git a/vite.config.ts b/vite.config.ts
index fd583db2..c4ae05d2 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -12,12 +12,12 @@ export default defineConfig({
coverage: {
all: true,
include: ['src/**/*.{js,jsx,ts,tsx}'],
- exclude: [...configDefaults.exclude],
+ exclude: [...configDefaults.exclude, 'src/**/*.cy.tsx'],
thresholds: {
- lines: 0,
- functions: 61,
+ lines: 1,
+ functions: 59,
branches: 62,
- statements: 0,
+ statements: 1,
},
},
},