import { createNext } from 'e2e-utils' import { NextInstance } from 'test/lib/next-modes/base' import { hasRedbox, renderViaHTTP } from 'next-test-utils' import webdriver from 'next-webdriver' import cheerio from 'cheerio' describe('Type module interop', () => { let next: NextInstance beforeAll(async () => { next = await createNext({ files: { 'pages/index.js': ` import Link from 'next/link' import Head from 'next/head' import Script from 'next/script' import dynamic from 'next/dynamic' import { useAmp } from 'next/amp' const Dynamic = dynamic(() => import('../components/example')) export default function Page() { const isAmp = useAmp() return ( <> This page has a title 🤔