Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
ff366ed0
Unverified
Commit
ff366ed0
authored
Jun 05, 2024
by
Sebastian Silbermann
Committed by
GitHub
Jun 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant React dependency declarations in test (#66530)
parent
82fe21f0
Show whitespace changes
Inline
Side-by-side
Showing
40 changed files
with
7 additions
and
150 deletions
+7
-150
run-tests.js
run-tests.js
+2
-1
ReactRefresh.test.ts
test/development/acceptance-app/ReactRefresh.test.ts
+0
-4
ReactRefreshLogBox-builtins.test.ts
...opment/acceptance-app/ReactRefreshLogBox-builtins.test.ts
+0
-4
ReactRefreshLogBox-scss.test.ts
...evelopment/acceptance-app/ReactRefreshLogBox-scss.test.ts
+0
-2
ReactRefreshLogBox.test.ts
test/development/acceptance-app/ReactRefreshLogBox.test.ts
+0
-4
ReactRefreshLogBoxMisc.test.ts
...development/acceptance-app/ReactRefreshLogBoxMisc.test.ts
+0
-4
ReactRefreshModule.test.ts
test/development/acceptance-app/ReactRefreshModule.test.ts
+0
-4
ReactRefreshRegression.test.ts
...development/acceptance-app/ReactRefreshRegression.test.ts
+0
-2
ReactRefreshRequire.test.ts
test/development/acceptance-app/ReactRefreshRequire.test.ts
+0
-4
editor-links.test.ts
test/development/acceptance-app/editor-links.test.ts
+0
-4
error-message-url.test.ts
test/development/acceptance-app/error-message-url.test.ts
+0
-4
error-recovery.test.ts
test/development/acceptance-app/error-recovery.test.ts
+0
-4
hydration-error.test.ts
test/development/acceptance-app/hydration-error.test.ts
+0
-4
invalid-imports.test.ts
test/development/acceptance-app/invalid-imports.test.ts
+0
-2
rsc-build-errors.test.ts
test/development/acceptance-app/rsc-build-errors.test.ts
+0
-4
server-components.test.ts
test/development/acceptance-app/server-components.test.ts
+0
-4
hydration-error.test.ts
test/development/acceptance/hydration-error.test.ts
+0
-4
server-component-compiler-errors-in-pages.test.ts
...eptance/server-component-compiler-errors-in-pages.test.ts
+0
-4
deprecated-package.test.ts
test/development/next-font/deprecated-package.test.ts
+0
-2
app-action-allowed-origins.test.ts
...ctions-allowed-origins/app-action-allowed-origins.test.ts
+0
-2
app-action-disallowed-origins.test.ts
...ons-allowed-origins/app-action-disallowed-origins.test.ts
+0
-2
app-action-export.test.ts
test/e2e/app-dir/actions/app-action-export.test.ts
+0
-2
app-action-form-state.test.ts
test/e2e/app-dir/actions/app-action-form-state.test.ts
+0
-4
app-action-progressive-enhancement.test.ts
...pp-dir/actions/app-action-progressive-enhancement.test.ts
+0
-2
app-action-size-limit-invalid.test.ts
...e2e/app-dir/actions/app-action-size-limit-invalid.test.ts
+0
-2
app-action.test.ts
test/e2e/app-dir/actions/app-action.test.ts
+0
-2
index.test.ts
test/e2e/app-dir/app-css-pageextensions/index.test.ts
+0
-2
index.test.ts
test/e2e/app-dir/app-css/index.test.ts
+0
-2
app-routes-client-component.test.ts
...utes-client-component/app-routes-client-component.test.ts
+0
-4
create-root-layout.test.ts
...e2e/app-dir/create-root-layout/create-root-layout.test.ts
+0
-12
navigation.test.ts
...2e/app-dir/interoperability-with-pages/navigation.test.ts
+0
-2
rewrites-redirects.test.ts
...e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts
+0
-2
child-a-tag-error.test.ts
test/e2e/new-link-behavior/child-a-tag-error.test.ts
+0
-2
material-ui.test.ts
test/e2e/new-link-behavior/material-ui.test.ts
+0
-2
stitches.test.ts
test/e2e/new-link-behavior/stitches.test.ts
+0
-2
with-proxy.test.ts
test/e2e/next-font/with-proxy.test.ts
+0
-4
index.test.ts
test/e2e/next-script/index.test.ts
+0
-27
index.test.ts
test/e2e/switchable-runtime/index.test.ts
+0
-4
index.test.ts
test/e2e/transpile-packages/index.test.ts
+0
-2
utils.ts
test/e2e/yarn-pnp/test/utils.ts
+5
-2
No files found.
run-tests.js
View file @
ff366ed0
...
@@ -405,7 +405,8 @@ ${ENDGROUP}`)
...
@@ -405,7 +405,8 @@ ${ENDGROUP}`)
// a starter Next.js install to re-use to speed up tests
// a starter Next.js install to re-use to speed up tests
// to avoid having to run yarn each time
// to avoid having to run yarn each time
console
.
log
(
`
${
GROUP
}
Creating Next.js install for isolated tests`
)
console
.
log
(
`
${
GROUP
}
Creating Next.js install for isolated tests`
)
const
reactVersion
=
process
.
env
.
NEXT_TEST_REACT_VERSION
||
'beta'
const
reactVersion
=
process
.
env
.
NEXT_TEST_REACT_VERSION
||
'19.0.0-rc-f994737d14-20240522'
const
{
installDir
,
pkgPaths
,
tmpRepoDir
}
=
await
createNextInstall
({
const
{
installDir
,
pkgPaths
,
tmpRepoDir
}
=
await
createNextInstall
({
parentSpan
:
mockTrace
(),
parentSpan
:
mockTrace
(),
dependencies
:
{
dependencies
:
{
...
...
test/development/acceptance-app/ReactRefresh.test.ts
View file @
ff366ed0
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
describe
(
'ReactRefresh app'
,
()
=>
{
describe
(
'ReactRefresh app'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshLogBox-builtins.test.ts
View file @
ff366ed0
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
describe
.
each
([
'default'
,
'turbo'
])(
'ReactRefreshLogBox app %s'
,
()
=>
{
describe
.
each
([
'default'
,
'turbo'
])(
'ReactRefreshLogBox app %s'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshLogBox-scss.test.ts
View file @
ff366ed0
...
@@ -11,8 +11,6 @@ describe.skip('ReactRefreshLogBox scss app', () => {
...
@@ -11,8 +11,6 @@ describe.skip('ReactRefreshLogBox scss app', () => {
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
dependencies
:
{
sass
:
'latest'
,
sass
:
'latest'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshLogBox.test.ts
View file @
ff366ed0
...
@@ -14,10 +14,6 @@ const IS_TURBOPACK = Boolean(process.env.TURBOPACK)
...
@@ -14,10 +14,6 @@ const IS_TURBOPACK = Boolean(process.env.TURBOPACK)
describe
.
each
([
'default'
,
'turbo'
])(
'ReactRefreshLogBox app %s'
,
()
=>
{
describe
.
each
([
'default'
,
'turbo'
])(
'ReactRefreshLogBox app %s'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshLogBoxMisc.test.ts
View file @
ff366ed0
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
describe
.
skip
(
'ReactRefreshLogBox app'
,
()
=>
{
describe
.
skip
(
'ReactRefreshLogBox app'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshModule.test.ts
View file @
ff366ed0
...
@@ -6,10 +6,6 @@ import { outdent } from 'outdent'
...
@@ -6,10 +6,6 @@ import { outdent } from 'outdent'
describe
(
'ReactRefreshModule app'
,
()
=>
{
describe
(
'ReactRefreshModule app'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshRegression.test.ts
View file @
ff366ed0
...
@@ -12,8 +12,6 @@ describe('ReactRefreshRegression app', () => {
...
@@ -12,8 +12,6 @@ describe('ReactRefreshRegression app', () => {
'styled-components'
:
'5.1.0'
,
'styled-components'
:
'5.1.0'
,
'@next/mdx'
:
'canary'
,
'@next/mdx'
:
'canary'
,
'@mdx-js/loader'
:
'0.18.0'
,
'@mdx-js/loader'
:
'0.18.0'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/ReactRefreshRequire.test.ts
View file @
ff366ed0
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
describe
(
'ReactRefreshRequire app'
,
()
=>
{
describe
(
'ReactRefreshRequire app'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/editor-links.test.ts
View file @
ff366ed0
...
@@ -28,10 +28,6 @@ async function clickImportTraceFiles(browser: any) {
...
@@ -28,10 +28,6 @@ async function clickImportTraceFiles(browser: any) {
describe
(
'Error overlay - editor links'
,
()
=>
{
describe
(
'Error overlay - editor links'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/error-message-url.test.ts
View file @
ff366ed0
...
@@ -6,10 +6,6 @@ import { outdent } from 'outdent'
...
@@ -6,10 +6,6 @@ import { outdent } from 'outdent'
describe
(
'Error overlay - error message urls'
,
()
=>
{
describe
(
'Error overlay - error message urls'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/error-recovery.test.ts
View file @
ff366ed0
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
describe
.
each
([
'default'
,
'turbo'
])(
'Error recovery app %s'
,
()
=>
{
describe
.
each
([
'default'
,
'turbo'
])(
'Error recovery app %s'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/hydration-error.test.ts
View file @
ff366ed0
...
@@ -10,10 +10,6 @@ import { getRedboxTotalErrorCount } from 'next-test-utils'
...
@@ -10,10 +10,6 @@ import { getRedboxTotalErrorCount } from 'next-test-utils'
describe
(
'Error overlay for hydration errors'
,
()
=>
{
describe
(
'Error overlay for hydration errors'
,
()
=>
{
const
{
next
,
isTurbopack
}
=
nextTestSetup
({
const
{
next
,
isTurbopack
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/invalid-imports.test.ts
View file @
ff366ed0
...
@@ -8,8 +8,6 @@ describe('Error Overlay invalid imports', () => {
...
@@ -8,8 +8,6 @@ describe('Error Overlay invalid imports', () => {
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
'client-only'
:
'latest'
,
'client-only'
:
'latest'
,
},
},
...
...
test/development/acceptance-app/rsc-build-errors.test.ts
View file @
ff366ed0
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
...
@@ -7,10 +7,6 @@ import { outdent } from 'outdent'
describe
(
'Error overlay - RSC build errors'
,
()
=>
{
describe
(
'Error overlay - RSC build errors'
,
()
=>
{
const
{
next
,
isTurbopack
}
=
nextTestSetup
({
const
{
next
,
isTurbopack
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'rsc-build-errors'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'rsc-build-errors'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance-app/server-components.test.ts
View file @
ff366ed0
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
...
@@ -8,10 +8,6 @@ import { outdent } from 'outdent'
describe
(
'Error Overlay for server components'
,
()
=>
{
describe
(
'Error Overlay for server components'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance/hydration-error.test.ts
View file @
ff366ed0
...
@@ -7,10 +7,6 @@ import path from 'path'
...
@@ -7,10 +7,6 @@ import path from 'path'
describe
(
'Error overlay for hydration errors'
,
()
=>
{
describe
(
'Error overlay for hydration errors'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'fixtures'
,
'default-template'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/acceptance/server-component-compiler-errors-in-pages.test.ts
View file @
ff366ed0
...
@@ -27,10 +27,6 @@ const initialFiles = new Map([
...
@@ -27,10 +27,6 @@ const initialFiles = new Map([
describe
(
'Error Overlay for server components compiler errors in pages'
,
()
=>
{
describe
(
'Error Overlay for server components compiler errors in pages'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
{},
files
:
{},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
skipStart
:
true
,
skipStart
:
true
,
})
})
...
...
test/development/next-font/deprecated-package.test.ts
View file @
ff366ed0
...
@@ -8,8 +8,6 @@ describe('Deprecated @next/font warning', () => {
...
@@ -8,8 +8,6 @@ describe('Deprecated @next/font warning', () => {
'pages/index.js'
:
''
,
'pages/index.js'
:
''
,
},
},
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'@next/font'
:
'canary'
,
'@next/font'
:
'canary'
,
},
},
skipStart
:
true
,
skipStart
:
true
,
...
...
test/e2e/app-dir/actions-allowed-origins/app-action-allowed-origins.test.ts
View file @
ff366ed0
...
@@ -7,8 +7,6 @@ describe('app-dir action allowed origins', () => {
...
@@ -7,8 +7,6 @@ describe('app-dir action allowed origins', () => {
files
:
join
(
__dirname
,
'safe-origins'
),
files
:
join
(
__dirname
,
'safe-origins'
),
skipDeployment
:
true
,
skipDeployment
:
true
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
// An arbitrary & random port.
// An arbitrary & random port.
...
...
test/e2e/app-dir/actions-allowed-origins/app-action-disallowed-origins.test.ts
View file @
ff366ed0
...
@@ -7,8 +7,6 @@ describe('app-dir action disallowed origins', () => {
...
@@ -7,8 +7,6 @@ describe('app-dir action disallowed origins', () => {
files
:
join
(
__dirname
,
'unsafe-origins'
),
files
:
join
(
__dirname
,
'unsafe-origins'
),
skipDeployment
:
true
,
skipDeployment
:
true
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/actions/app-action-export.test.ts
View file @
ff366ed0
...
@@ -6,8 +6,6 @@ describe('app-dir action handling - next export', () => {
...
@@ -6,8 +6,6 @@ describe('app-dir action handling - next export', () => {
skipStart
:
true
,
skipStart
:
true
,
skipDeployment
:
true
,
skipDeployment
:
true
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/actions/app-action-form-state.test.ts
View file @
ff366ed0
...
@@ -5,10 +5,6 @@ import { check } from 'next-test-utils'
...
@@ -5,10 +5,6 @@ import { check } from 'next-test-utils'
describe
(
'app-dir action useActionState'
,
()
=>
{
describe
(
'app-dir action useActionState'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
it
(
'should support submitting form state with JS'
,
async
()
=>
{
it
(
'should support submitting form state with JS'
,
async
()
=>
{
const
browser
=
await
next
.
browser
(
'/client/form-state'
)
const
browser
=
await
next
.
browser
(
'/client/form-state'
)
...
...
test/e2e/app-dir/actions/app-action-progressive-enhancement.test.ts
View file @
ff366ed0
...
@@ -7,9 +7,7 @@ describe('app-dir action progressive enhancement', () => {
...
@@ -7,9 +7,7 @@ describe('app-dir action progressive enhancement', () => {
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
nanoid
:
'latest'
,
nanoid
:
'latest'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts
View file @
ff366ed0
...
@@ -11,8 +11,6 @@ describe('app-dir action size limit invalid config', () => {
...
@@ -11,8 +11,6 @@ describe('app-dir action size limit invalid config', () => {
skipDeployment
:
true
,
skipDeployment
:
true
,
skipStart
:
true
,
skipStart
:
true
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/actions/app-action.test.ts
View file @
ff366ed0
...
@@ -19,9 +19,7 @@ describe('app-dir action handling', () => {
...
@@ -19,9 +19,7 @@ describe('app-dir action handling', () => {
nextTestSetup
({
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
nanoid
:
'latest'
,
nanoid
:
'latest'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'server-only'
:
'latest'
,
'server-only'
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/app-css-pageextensions/index.test.ts
View file @
ff366ed0
...
@@ -6,8 +6,6 @@ describe('app dir - css with pageextensions', () => {
...
@@ -6,8 +6,6 @@ describe('app dir - css with pageextensions', () => {
skipDeployment
:
true
,
skipDeployment
:
true
,
dependencies
:
{
dependencies
:
{
'@picocss/pico'
:
'1.5.7'
,
'@picocss/pico'
:
'1.5.7'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
sass
:
'latest'
,
sass
:
'latest'
,
},
},
})
})
...
...
test/e2e/app-dir/app-css/index.test.ts
View file @
ff366ed0
...
@@ -7,8 +7,6 @@ describe('app dir - css', () => {
...
@@ -7,8 +7,6 @@ describe('app dir - css', () => {
skipDeployment
:
true
,
skipDeployment
:
true
,
dependencies
:
{
dependencies
:
{
'@picocss/pico'
:
'1.5.7'
,
'@picocss/pico'
:
'1.5.7'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
sass
:
'latest'
,
sass
:
'latest'
,
'@next/mdx'
:
'canary'
,
'@next/mdx'
:
'canary'
,
},
},
...
...
test/e2e/app-dir/app-routes-client-component/app-routes-client-component.test.ts
View file @
ff366ed0
...
@@ -4,10 +4,6 @@ import path from 'path'
...
@@ -4,10 +4,6 @@ import path from 'path'
describe
(
'referencing a client component in an app route'
,
()
=>
{
describe
(
'referencing a client component in an app route'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
new
FileRef
(
path
.
join
(
__dirname
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
it
(
'responds without error'
,
async
()
=>
{
it
(
'responds without error'
,
async
()
=>
{
...
...
test/e2e/app-dir/create-root-layout/create-root-layout.test.ts
View file @
ff366ed0
...
@@ -73,10 +73,6 @@ import stripAnsi from 'strip-ansi'
...
@@ -73,10 +73,6 @@ import stripAnsi from 'strip-ansi'
path
.
join
(
__dirname
,
'next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -127,10 +123,6 @@ import stripAnsi from 'strip-ansi'
...
@@ -127,10 +123,6 @@ import stripAnsi from 'strip-ansi'
path
.
join
(
__dirname
,
'next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -236,10 +228,6 @@ import stripAnsi from 'strip-ansi'
...
@@ -236,10 +228,6 @@ import stripAnsi from 'strip-ansi'
path
.
join
(
__dirname
,
'next.config.js'
)
path
.
join
(
__dirname
,
'next.config.js'
)
),
),
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
await
expect
(
next
.
start
()).
rejects
.
toThrow
(
'next build failed'
)
await
expect
(
next
.
start
()).
rejects
.
toThrow
(
'next build failed'
)
...
...
test/e2e/app-dir/interoperability-with-pages/navigation.test.ts
View file @
ff366ed0
...
@@ -9,8 +9,6 @@ describe('navigation between pages and app dir', () => {
...
@@ -9,8 +9,6 @@ describe('navigation between pages and app dir', () => {
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
__dirname
),
files
:
new
FileRef
(
__dirname
),
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
typescript
:
'latest'
,
typescript
:
'latest'
,
'@types/react'
:
'latest'
,
'@types/react'
:
'latest'
,
'@types/node'
:
'latest'
,
'@types/node'
:
'latest'
,
...
...
test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.ts
View file @
ff366ed0
...
@@ -4,8 +4,6 @@ describe('redirects and rewrites', () => {
...
@@ -4,8 +4,6 @@ describe('redirects and rewrites', () => {
const
{
next
}
=
nextTestSetup
({
const
{
next
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
typescript
:
'latest'
,
typescript
:
'latest'
,
'@types/react'
:
'latest'
,
'@types/react'
:
'latest'
,
'@types/node'
:
'latest'
,
'@types/node'
:
'latest'
,
...
...
test/e2e/new-link-behavior/child-a-tag-error.test.ts
View file @
ff366ed0
...
@@ -17,8 +17,6 @@ describe('New Link Behavior with <a> child', () => {
...
@@ -17,8 +17,6 @@ describe('New Link Behavior with <a> child', () => {
},
},
dependencies
:
{
dependencies
:
{
next
:
'latest'
,
next
:
'latest'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
})
})
})
})
...
...
test/e2e/new-link-behavior/material-ui.test.ts
View file @
ff366ed0
...
@@ -24,8 +24,6 @@ describe('New Link Behavior with material-ui', () => {
...
@@ -24,8 +24,6 @@ describe('New Link Behavior with material-ui', () => {
'@mui/material'
:
'latest'
,
'@mui/material'
:
'latest'
,
next
:
'latest'
,
next
:
'latest'
,
'prop-types'
:
'latest'
,
'prop-types'
:
'latest'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
// Use minimum peer dep version instead of v9 of eslint to avoid breaking changes
// Use minimum peer dep version instead of v9 of eslint to avoid breaking changes
eslint
:
'8.56.0'
,
eslint
:
'8.56.0'
,
'eslint-config-next'
:
'latest'
,
'eslint-config-next'
:
'latest'
,
...
...
test/e2e/new-link-behavior/stitches.test.ts
View file @
ff366ed0
...
@@ -21,8 +21,6 @@ describe('New Link Behavior with stitches', () => {
...
@@ -21,8 +21,6 @@ describe('New Link Behavior with stitches', () => {
dependencies
:
{
dependencies
:
{
'@stitches/react'
:
'^1.2.6'
,
'@stitches/react'
:
'^1.2.6'
,
next
:
'latest'
,
next
:
'latest'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
})
})
})
})
...
...
test/e2e/next-font/with-proxy.test.ts
View file @
ff366ed0
...
@@ -29,10 +29,6 @@ describe('next/font/google with proxy', () => {
...
@@ -29,10 +29,6 @@ describe('next/font/google with proxy', () => {
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
join
(
__dirname
,
'with-proxy'
)),
files
:
new
FileRef
(
join
(
__dirname
,
'with-proxy'
)),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
env
:
{
env
:
{
http_proxy
:
'http://localhost:'
+
PROXY_PORT
,
http_proxy
:
'http://localhost:'
+
PROXY_PORT
,
},
},
...
...
test/e2e/next-script/index.test.ts
View file @
ff366ed0
...
@@ -40,10 +40,6 @@ describe('beforeInteractive in document Head', () => {
...
@@ -40,10 +40,6 @@ describe('beforeInteractive in document Head', () => {
}
}
`
,
`
,
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -100,10 +96,6 @@ describe('beforeInteractive in document body', () => {
...
@@ -100,10 +96,6 @@ describe('beforeInteractive in document body', () => {
}
}
`
,
`
,
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -161,10 +153,6 @@ describe('empty strategy in document Head', () => {
...
@@ -161,10 +153,6 @@ describe('empty strategy in document Head', () => {
}
}
`
,
`
,
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -220,10 +208,6 @@ describe('empty strategy in document body', () => {
...
@@ -220,10 +208,6 @@ describe('empty strategy in document body', () => {
}
}
`
,
`
,
},
},
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -267,11 +251,6 @@ describe('empty strategy in document body', () => {
...
@@ -267,11 +251,6 @@ describe('empty strategy in document body', () => {
}
}
`
,
`
,
},
},
// TODO: @housseindjirdeh: verify React 18 functionality
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
})
})
afterAll
(()
=>
next
.
destroy
())
afterAll
(()
=>
next
.
destroy
())
...
@@ -320,8 +299,6 @@ describe('empty strategy in document body', () => {
...
@@ -320,8 +299,6 @@ describe('empty strategy in document body', () => {
`
,
`
,
},
},
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'@builder.io/partytown'
:
'0.4.2'
,
'@builder.io/partytown'
:
'0.4.2'
,
},
},
})
})
...
@@ -409,8 +386,6 @@ describe('empty strategy in document body', () => {
...
@@ -409,8 +386,6 @@ describe('empty strategy in document body', () => {
`
,
`
,
},
},
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
'@builder.io/partytown'
:
'0.4.2'
,
'@builder.io/partytown'
:
'0.4.2'
,
},
},
})
})
...
@@ -525,8 +500,6 @@ describe('empty strategy in document body', () => {
...
@@ -525,8 +500,6 @@ describe('empty strategy in document body', () => {
},
},
dependencies
:
{
dependencies
:
{
'@builder.io/partytown'
:
'0.4.2'
,
'@builder.io/partytown'
:
'0.4.2'
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
})
})
})
})
...
...
test/e2e/switchable-runtime/index.test.ts
View file @
ff366ed0
...
@@ -43,10 +43,6 @@ describe('Switchable runtime', () => {
...
@@ -43,10 +43,6 @@ describe('Switchable runtime', () => {
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
__dirname
),
files
:
new
FileRef
(
__dirname
),
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
})
})
context
=
{
context
=
{
appPort
:
next
.
url
,
appPort
:
next
.
url
,
...
...
test/e2e/transpile-packages/index.test.ts
View file @
ff366ed0
...
@@ -16,8 +16,6 @@ describe('transpile packages', () => {
...
@@ -16,8 +16,6 @@ describe('transpile packages', () => {
next
=
await
createNext
({
next
=
await
createNext
({
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'./npm'
)),
files
:
new
FileRef
(
path
.
join
(
__dirname
,
'./npm'
)),
dependencies
:
{
dependencies
:
{
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
sass
:
'latest'
,
sass
:
'latest'
,
},
},
packageJson
:
{
packageJson
:
{
...
...
test/e2e/yarn-pnp/test/utils.ts
View file @
ff366ed0
...
@@ -29,6 +29,11 @@ export function runTests(
...
@@ -29,6 +29,11 @@ export function runTests(
const
srcFiles
=
await
fs
.
readdir
(
srcDir
)
const
srcFiles
=
await
fs
.
readdir
(
srcDir
)
const
packageJson
=
await
fs
.
readJson
(
join
(
srcDir
,
'package.json'
))
const
packageJson
=
await
fs
.
readJson
(
join
(
srcDir
,
'package.json'
))
// Use the default versions that are usually used in tests.
// Since we replace `next` in the install, we also need to fulfill the peerDependencies.
// However, the example specified latest next which may have different peerDependencies that the next that we test here i.e. the next on this commit.
delete
packageJson
.
dependencies
[
'react'
]
delete
packageJson
.
dependencies
[
'react-dom'
]
next
=
await
createNext
({
next
=
await
createNext
({
files
:
srcFiles
.
reduce
(
files
:
srcFiles
.
reduce
(
...
@@ -43,8 +48,6 @@ export function runTests(
...
@@ -43,8 +48,6 @@ export function runTests(
dependencies
:
{
dependencies
:
{
...
packageJson
.
dependencies
,
...
packageJson
.
dependencies
,
...
packageJson
.
devDependencies
,
...
packageJson
.
devDependencies
,
react
:
'19.0.0-rc-f994737d14-20240522'
,
'react-dom'
:
'19.0.0-rc-f994737d14-20240522'
,
},
},
installCommand
:
({
dependencies
})
=>
{
installCommand
:
({
dependencies
})
=>
{
const
pkgs
=
Object
.
keys
(
dependencies
).
reduce
((
prev
,
cur
)
=>
{
const
pkgs
=
Object
.
keys
(
dependencies
).
reduce
((
prev
,
cur
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment