diff --git a/packages/typography/src/Link/Link/Link.spec.tsx b/packages/typography/src/Link/Link/Link.spec.tsx index ce345c0ef8..aee9283402 100644 --- a/packages/typography/src/Link/Link/Link.spec.tsx +++ b/packages/typography/src/Link/Link/Link.spec.tsx @@ -1,7 +1,7 @@ import React, { createRef } from 'react'; import { fireEvent, render, screen } from '@testing-library/react'; -import { PolymorphicAs } from '@leafygreen-ui/polymorphic'; +import { InferredPolymorphic, PolymorphicAs } from '@leafygreen-ui/polymorphic'; import Link from './Link'; import { LinkProps } from './Link.types'; @@ -201,6 +201,8 @@ describe('packages/typography', () => { return test; }; + const MyInferredPoly = InferredPolymorphic<{}, 'button'>(p => <>); + // eslint-disable-next-line test.skip('Link Component types', () => { <> @@ -240,6 +242,8 @@ describe('packages/typography', () => { {/* @ts-expect-error as anchor is not allowed without an href */} Content + + ; }); });