import React from 'react'; import { render } from '@testing-library/react'; import { Tab } from '../Tab'; import { TabAction } from '../TabAction'; import { TabTitleText } from '../TabTitleText'; test('should not render anything', () => { const { asFragment } = render( "Tab item 1"}> Tab 1 section ); expect(asFragment()).toMatchSnapshot(); }); test('renders tab action', () => { const { asFragment } = render( "Tab item 2"} actions={test}> Tab 2 section ); expect(asFragment()).toMatchSnapshot(); });