Run Pages Router test with same version as Next.js peer dependency (#66712)

This commit is contained in:
Sebastian Silbermann 2024-06-10 19:03:13 +02:00 committed by GitHub
parent e7694b3f3d
commit eb9f49b07e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -405,8 +405,7 @@ ${ENDGROUP}`)
// a starter Next.js install to re-use to speed up tests
// to avoid having to run yarn each time
console.log(`${GROUP}Creating Next.js install for isolated tests`)
const reactVersion =
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-f994737d14-20240522'
const reactVersion = process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc.0'
const { installDir, pkgPaths, tmpRepoDir } = await createNextInstall({
parentSpan: mockTrace(),
dependencies: {