import * as React from "react"; import { typography } from "../../theme"; import Text from "../Text"; import { Type } from "../../theme/typings/typography"; import { shallow } from "enzyme"; describe("Component: Tag", () => { test("snapshot", () => { const texts: JSX.Element[] = []; Object.keys(typography).forEach(size => { Object.keys(typography[size as keyof typeof typography]).forEach(type => texts.push( Hello World ) ); }); expect(shallow(
{texts}
)).toMatchSnapshot(); }); });