import React from 'react'; import { render, screen } from '@testing-library/react'; import 'jest-styled-components'; import { Skeleton } from '..'; import { Grommet } from '../../Grommet'; import { Box } from '../../Box'; import { Text } from '../../Text'; import { Heading } from '../../Heading'; import { Paragraph } from '../../Paragraph'; import { Button } from '../../Button'; describe('Skeleton', () => { test('renders', () => { const { asFragment } = render( , ); expect(asFragment()).toMatchSnapshot(); }); test('Box skeleton loading', () => { const { asFragment } = render( Heading Text Paragraph