Files
next.js/test/production/supports-module-resolution-nodenext/supports-moduleresolution-nodenext.test.ts
Benjamin WoodruffandGitHub 337a40c672 [ci] Pin typescript version in tests (#95619)
Typescript 7 came out, which is breaking a lot of our e2e tests.
2026-07-08 14:12:48 -07:00

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$('/')
})
})