import React from 'react'; import { customRender } from 'test-utils'; import SidebarNav from '.'; describe('', () => { it('should render correctly', () => { const { container, getByText } = customRender(Children); const nav = container.firstChild; const children = getByText('Children'); expect(nav).toHaveStyle('overflow-y: auto;'); expect(nav).toContainElement(children); }); it('should allow to pass any props', () => { const { container } = customRender(Hello World); expect(container.querySelector('[data-foo="bar"]')).toBeInTheDocument(); }); });