mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Typescript 7 came out, which is breaking a lot of our e2e tests.
23 lines
688 B
TypeScript
23 lines
688 B
TypeScript
import { nextTestSetup, FileRef } from 'e2e-utils'
|
|
import { join } from 'path'
|
|
|
|
// regression test suite for https://github.com/vercel/next.js/issues/38854
|
|
describe('Does not override tsconfig moduleResolution field during build', () => {
|
|
const { next } = nextTestSetup({
|
|
packageJson: { type: 'module' },
|
|
files: {
|
|
'tsconfig.json': new FileRef(join(__dirname, 'tsconfig.json')),
|
|
pages: new FileRef(join(__dirname, 'pages')),
|
|
pkg: new FileRef(join(__dirname, 'pkg')),
|
|
},
|
|
dependencies: {
|
|
'@types/react': 'latest',
|
|
pkg: './pkg',
|
|
},
|
|
})
|
|
|
|
it('boots and renders without throwing an error', async () => {
|
|
await next.render$('/')
|
|
})
|
|
})
|