import React from 'react'; import { render } from '@testing-library/react'; import 'jest-styled-components'; import { Avatar } from '../../Avatar'; import { Grommet } from '../../Grommet'; import { Sidebar } from '..'; const src = ''; describe('Sidebar', () => { test('renders', () => { const { container } = render( , ); expect(container.firstChild).toMatchSnapshot(); }); test('header', () => { const { container } = render( } /> , ); expect(container.firstChild).toMatchSnapshot(); }); test('footer', () => { const { container } = render( } /> , ); expect(container.firstChild).toMatchSnapshot(); }); test('children', () => { const { container } = render( children test , ); expect(container.firstChild).toMatchSnapshot(); }); test('all', () => { const { container } = render( SY} header={} background="brand" > test all props and children , ); expect(container.firstChild).toMatchSnapshot(); }); });