diff --git a/packages/nextjs/test/integration/pages/[id]/withInitialProps.tsx b/packages/nextjs/test/integration/pages/[id]/withInitialProps.tsx index 12558228b23c..891ce12caa58 100644 --- a/packages/nextjs/test/integration/pages/[id]/withInitialProps.tsx +++ b/packages/nextjs/test/integration/pages/[id]/withInitialProps.tsx @@ -3,7 +3,9 @@ import Link from 'next/link'; const WithInitialPropsPage = ({ data }: { data: string }) => ( <>

WithInitialPropsPage {data}

- + {/* + // @ts-ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */} + Go to withServerSideProps diff --git a/packages/nextjs/test/integration/pages/[id]/withServerSideProps.tsx b/packages/nextjs/test/integration/pages/[id]/withServerSideProps.tsx index f5b5a3b3465c..3ae6416fd17d 100644 --- a/packages/nextjs/test/integration/pages/[id]/withServerSideProps.tsx +++ b/packages/nextjs/test/integration/pages/[id]/withServerSideProps.tsx @@ -3,7 +3,9 @@ import Link from 'next/link'; const WithServerSidePropsPage = ({ data }: { data: string }) => ( <>

WithServerSidePropsPage {data}

- + {/* + // @ts-ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */} + Go to withInitialProps diff --git a/packages/nextjs/test/integration/pages/alsoHealthy.tsx b/packages/nextjs/test/integration/pages/alsoHealthy.tsx index d643dd103a50..84eb4c60c4d6 100644 --- a/packages/nextjs/test/integration/pages/alsoHealthy.tsx +++ b/packages/nextjs/test/integration/pages/alsoHealthy.tsx @@ -1,7 +1,8 @@ import Link from 'next/link'; const HealthyPage = (): JSX.Element => ( - + // @ts-ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag + Healthy ); diff --git a/packages/nextjs/test/integration/pages/healthy.tsx b/packages/nextjs/test/integration/pages/healthy.tsx index 637f82264575..2a254b825d4b 100644 --- a/packages/nextjs/test/integration/pages/healthy.tsx +++ b/packages/nextjs/test/integration/pages/healthy.tsx @@ -1,7 +1,8 @@ import Link from 'next/link'; const HealthyPage = (): JSX.Element => ( - + // @ts-ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag + AlsoHealthy ); diff --git a/packages/nextjs/test/integration/pages/users/index.tsx b/packages/nextjs/test/integration/pages/users/index.tsx index 6cfff63ab91a..9313d3992dc6 100644 --- a/packages/nextjs/test/integration/pages/users/index.tsx +++ b/packages/nextjs/test/integration/pages/users/index.tsx @@ -19,7 +19,9 @@ const WithStaticProps = ({ items }: Props) => (

You are currently on: /users

- + {/* + // @ts-ignore https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag */} + Go home