Unverified Commit 097fb3ca authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Revert incremental config to fix missing types (#30644)

* Revert incremental config to fix missing types

* Add failing test
parent aa70f460
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
"target": "ES2017", "target": "ES2017",
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
"jsx": "react", "jsx": "react"
"incremental": true
}, },
"exclude": ["dist", "./*.d.ts"] "exclude": ["dist", "./*.d.ts"]
} }
import { createNext } from 'e2e-utils'
import { renderViaHTTP } from 'next-test-utils'
import { NextInstance } from 'test/lib/next-modes/base'
describe('TypeScript basic', () => {
let next: NextInstance
beforeAll(async () => {
next = await createNext({
files: {
'pages/index.tsx': `
import { useRouter } from 'next/router'
import Link from 'next/link'
export default function Page() {
const router = useRouter()
return (
<>
<p>hello world</p>
<Link href='/another'>
<a>to /another</a>
</Link>
</>
)
}
`,
},
dependencies: {
typescript: '4.4.3',
'@types/react': '16.9.17',
},
})
})
afterAll(() => next.destroy())
it('have built and started correctly', async () => {
const html = await renderViaHTTP(next.url, '/')
expect(html).toContain('hello world')
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment