import { render, screen } from '@testing-library/react' import '@testing-library/jest-dom' import { ScrollArea } from '.' import { describe, expect, it } from 'vitest' describe('ScrollArea Component', () => { it('renders children inside RootScrollArea', () => { render(
Test Child
) expect(screen.getByText('Test Child')).toBeInTheDocument() }) describe("should match the snapshot", () => { it("horizontal", () => { const component = render(
Test Child
); expect(component.baseElement).toMatchSnapshot(); }); it("vertical", () => { const component = render(
Test Child
); expect(component.baseElement).toMatchSnapshot(); }); }); })