Skip to content

Commit ff366ed

Browse files
authored
Remove redundant React dependency declarations in test (#66530)
1 parent 82fe21f commit ff366ed

40 files changed

+7
-150
lines changed

run-tests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ ${ENDGROUP}`)
405405
// a starter Next.js install to re-use to speed up tests
406406
// to avoid having to run yarn each time
407407
console.log(`${GROUP}Creating Next.js install for isolated tests`)
408-
const reactVersion = process.env.NEXT_TEST_REACT_VERSION || 'beta'
408+
const reactVersion =
409+
process.env.NEXT_TEST_REACT_VERSION || '19.0.0-rc-f994737d14-20240522'
409410
const { installDir, pkgPaths, tmpRepoDir } = await createNextInstall({
410411
parentSpan: mockTrace(),
411412
dependencies: {

test/development/acceptance-app/ReactRefresh.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
77
describe('ReactRefresh app', () => {
88
const { next } = nextTestSetup({
99
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
10-
dependencies: {
11-
react: '19.0.0-rc-f994737d14-20240522',
12-
'react-dom': '19.0.0-rc-f994737d14-20240522',
13-
},
1410
skipStart: true,
1511
})
1612

test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
88
describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
99
const { next } = nextTestSetup({
1010
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
11-
dependencies: {
12-
react: '19.0.0-rc-f994737d14-20240522',
13-
'react-dom': '19.0.0-rc-f994737d14-20240522',
14-
},
1511
skipStart: true,
1612
})
1713

test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ describe.skip('ReactRefreshLogBox scss app', () => {
1111
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
1212
dependencies: {
1313
sass: 'latest',
14-
react: '19.0.0-rc-f994737d14-20240522',
15-
'react-dom': '19.0.0-rc-f994737d14-20240522',
1614
},
1715
skipStart: true,
1816
})

test/development/acceptance-app/ReactRefreshLogBox.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ const IS_TURBOPACK = Boolean(process.env.TURBOPACK)
1414
describe.each(['default', 'turbo'])('ReactRefreshLogBox app %s', () => {
1515
const { next } = nextTestSetup({
1616
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
17-
dependencies: {
18-
react: '19.0.0-rc-f994737d14-20240522',
19-
'react-dom': '19.0.0-rc-f994737d14-20240522',
20-
},
2117
skipStart: true,
2218
})
2319

test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
88
describe.skip('ReactRefreshLogBox app', () => {
99
const { next } = nextTestSetup({
1010
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
11-
dependencies: {
12-
react: '19.0.0-rc-f994737d14-20240522',
13-
'react-dom': '19.0.0-rc-f994737d14-20240522',
14-
},
1511
skipStart: true,
1612
})
1713

test/development/acceptance-app/ReactRefreshModule.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ import { outdent } from 'outdent'
66
describe('ReactRefreshModule app', () => {
77
const { next } = nextTestSetup({
88
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
9-
dependencies: {
10-
react: '19.0.0-rc-f994737d14-20240522',
11-
'react-dom': '19.0.0-rc-f994737d14-20240522',
12-
},
139
skipStart: true,
1410
})
1511

test/development/acceptance-app/ReactRefreshRegression.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ describe('ReactRefreshRegression app', () => {
1212
'styled-components': '5.1.0',
1313
'@next/mdx': 'canary',
1414
'@mdx-js/loader': '0.18.0',
15-
react: '19.0.0-rc-f994737d14-20240522',
16-
'react-dom': '19.0.0-rc-f994737d14-20240522',
1715
},
1816
skipStart: true,
1917
})

test/development/acceptance-app/ReactRefreshRequire.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
77
describe('ReactRefreshRequire app', () => {
88
const { next } = nextTestSetup({
99
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
10-
dependencies: {
11-
react: '19.0.0-rc-f994737d14-20240522',
12-
'react-dom': '19.0.0-rc-f994737d14-20240522',
13-
},
1410
skipStart: true,
1511
})
1612

test/development/acceptance-app/editor-links.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ async function clickImportTraceFiles(browser: any) {
2828
describe('Error overlay - editor links', () => {
2929
const { next } = nextTestSetup({
3030
files: new FileRef(path.join(__dirname, 'fixtures', 'default-template')),
31-
dependencies: {
32-
react: '19.0.0-rc-f994737d14-20240522',
33-
'react-dom': '19.0.0-rc-f994737d14-20240522',
34-
},
3531
skipStart: true,
3632
})
3733

0 commit comments

Comments
 (0)