style: run prettier formatter over src and tests

This commit is contained in:
2026-06-11 20:46:00 +05:30
parent 2389d4f297
commit 6b564a4569
211 changed files with 6134 additions and 4234 deletions
+1 -1
View File
@@ -21,4 +21,4 @@ describe('Button', () => {
const btn = screen.getByRole('button');
expect(btn.className).toContain('bg-primary');
});
});
});
+1 -1
View File
@@ -10,4 +10,4 @@ describe('Checkbox', () => {
await userEvent.click(screen.getByRole('checkbox', { name: /agree/i }));
expect(onCheckedChange).toHaveBeenCalledWith(true);
});
});
});
+1 -1
View File
@@ -27,4 +27,4 @@ describe('Dialog', () => {
expect(screen.getByRole('dialog')).toBeInTheDocument();
expect(screen.getByText(/title/i)).toBeInTheDocument();
});
});
});
+9 -2
View File
@@ -3,7 +3,14 @@ import { render, screen } from '@testing-library/react';
import { useForm, FormProvider } from 'react-hook-form';
import { z } from 'zod';
import { zodResolver } from '@hookform/resolvers/zod';
import { Form, FormField, FormItem, FormLabel, FormControl, FormMessage } from '@/components/ui/form';
import {
Form,
FormField,
FormItem,
FormLabel,
FormControl,
FormMessage,
} from '@/components/ui/form';
import { Input } from '@/components/ui/input';
const schema = z.object({ name: z.string().min(2) });
@@ -39,4 +46,4 @@ describe('Form', () => {
render(<Harness />);
expect(screen.getByLabelText(/name/i)).toBeInTheDocument();
});
});
});
+1 -1
View File
@@ -11,4 +11,4 @@ describe('Input', () => {
await userEvent.type(input, 'a');
expect(onChange).toHaveBeenCalled();
});
});
});
+1 -1
View File
@@ -26,4 +26,4 @@ describe('Select', () => {
await userEvent.click(screen.getByRole('combobox', { name: /fruit/i }));
expect(screen.getByRole('option', { name: /apple/i })).toBeInTheDocument();
});
});
});
+1 -1
View File
@@ -26,4 +26,4 @@ describe('Sheet', () => {
await userEvent.click(screen.getByRole('button', { name: /open/i }));
expect(screen.getByRole('dialog')).toBeInTheDocument();
});
});
});
+1 -1
View File
@@ -14,4 +14,4 @@ describe('Toaster', () => {
// but the test should not throw
expect(container).toBeDefined();
});
});
});
+1 -1
View File
@@ -10,4 +10,4 @@ describe('Switch', () => {
await userEvent.click(screen.getByRole('switch', { name: /airplane/i }));
expect(onCheckedChange).toHaveBeenCalledWith(true);
});
});
});
+1 -1
View File
@@ -19,4 +19,4 @@ describe('Tabs', () => {
await userEvent.click(screen.getByRole('tab', { name: /two/i }));
expect(screen.getByText(/content two/i)).toBeVisible();
});
});
});
+1 -1
View File
@@ -9,4 +9,4 @@ describe('Textarea', () => {
expect(ta.tagName).toBe('TEXTAREA');
expect(ta).toHaveValue('hello');
});
});
});