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
9df56c2c
Unverified
Commit
9df56c2c
authored
Feb 21, 2025
by
Jiachi Liu
Committed by
GitHub
Feb 21, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: disable metadata streaming deployment tests (#76335)
parent
9a3d5a5e
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
8 deletions
+19
-8
ppr-metadata-blocking.test.ts
...p-dir/ppr-metadata-blocking/ppr-metadata-blocking.test.ts
+5
-3
ppr-metadata-streaming.test.ts
...dir/ppr-metadata-streaming/ppr-metadata-streaming.test.ts
+6
-3
metadata-streaming-config-customized.test.ts
...aming-config/metadata-streaming-config-customized.test.ts
+4
-1
metadata-streaming-config.test.ts
...tadata-streaming-config/metadata-streaming-config.test.ts
+4
-1
No files found.
test/e2e/app-dir/ppr-metadata-blocking/ppr-metadata-blocking.test.ts
View file @
9df56c2c
...
@@ -7,10 +7,13 @@ function countSubstring(str: string, substr: string): number {
...
@@ -7,10 +7,13 @@ function countSubstring(str: string, substr: string): number {
}
}
describe
(
'ppr-metadata-blocking'
,
()
=>
{
describe
(
'ppr-metadata-blocking'
,
()
=>
{
const
{
next
,
isNextDev
,
isNextStart
}
=
nextTestSetup
({
const
{
next
,
isNextDev
,
skipped
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
skipDeployment
:
true
,
})
})
if
(
skipped
)
return
// No dynamic APIs used in metadata
// No dynamic APIs used in metadata
describe
(
'static metadata'
,
()
=>
{
describe
(
'static metadata'
,
()
=>
{
it
(
'should generate metadata in head when page is fully static'
,
async
()
=>
{
it
(
'should generate metadata in head when page is fully static'
,
async
()
=>
{
...
@@ -99,8 +102,7 @@ describe('ppr-metadata-blocking', () => {
...
@@ -99,8 +102,7 @@ describe('ppr-metadata-blocking', () => {
})
})
})
})
// Disable deployment until we support it on infra
if
(
!
isNextDev
)
{
if
(
isNextStart
)
{
// This test is only relevant in production mode, as it's testing PPR results
// This test is only relevant in production mode, as it's testing PPR results
describe
(
'html limited bots'
,
()
=>
{
describe
(
'html limited bots'
,
()
=>
{
it
(
'should serve partial static shell when normal UA requests the page'
,
async
()
=>
{
it
(
'should serve partial static shell when normal UA requests the page'
,
async
()
=>
{
...
...
test/e2e/app-dir/ppr-metadata-streaming/ppr-metadata-streaming.test.ts
View file @
9df56c2c
...
@@ -10,10 +10,13 @@ function countSubstring(str: string, substr: string): number {
...
@@ -10,10 +10,13 @@ function countSubstring(str: string, substr: string): number {
}
}
describe
(
'ppr-metadata-streaming'
,
()
=>
{
describe
(
'ppr-metadata-streaming'
,
()
=>
{
const
{
next
,
isNextDev
,
isNext
Start
}
=
nextTestSetup
({
const
{
next
,
isNextDev
,
isNext
Deploy
,
skipped
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
skipDeployment
:
true
,
})
})
if
(
skipped
)
return
// No dynamic APIs used in metadata
// No dynamic APIs used in metadata
describe
(
'static metadata'
,
()
=>
{
describe
(
'static metadata'
,
()
=>
{
it
(
'should generate metadata in head when page is fully static'
,
async
()
=>
{
it
(
'should generate metadata in head when page is fully static'
,
async
()
=>
{
...
@@ -96,8 +99,8 @@ describe('ppr-metadata-streaming', () => {
...
@@ -96,8 +99,8 @@ describe('ppr-metadata-streaming', () => {
})
})
})
})
//
Disable deployment until we support it on infra
//
Skip the deployment tests for html limited bots
if
(
isNextStart
)
{
if
(
!
isNextDev
&&
!
isNextDeploy
)
{
// This test is only relevant in production mode, as it's testing PPR results
// This test is only relevant in production mode, as it's testing PPR results
describe
(
'html limited bots'
,
()
=>
{
describe
(
'html limited bots'
,
()
=>
{
it
(
'should serve partial static shell when normal UA requests the page'
,
async
()
=>
{
it
(
'should serve partial static shell when normal UA requests the page'
,
async
()
=>
{
...
...
test/production/app-dir/metadata-streaming-config/metadata-streaming-config-customized.test.ts
View file @
9df56c2c
...
@@ -4,8 +4,9 @@ import { nextTestSetup } from 'e2e-utils'
...
@@ -4,8 +4,9 @@ import { nextTestSetup } from 'e2e-utils'
process
.
env
.
__NEXT_EXPERIMENTAL_PPR
=
'true'
process
.
env
.
__NEXT_EXPERIMENTAL_PPR
=
'true'
describe
(
'app-dir - metadata-streaming-config-customized'
,
()
=>
{
describe
(
'app-dir - metadata-streaming-config-customized'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
,
skipped
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
skipDeployment
:
true
,
overrideFiles
:
{
overrideFiles
:
{
'next.config.js'
:
`
'next.config.js'
:
`
module.exports = {
module.exports = {
...
@@ -19,6 +20,8 @@ describe('app-dir - metadata-streaming-config-customized', () => {
...
@@ -19,6 +20,8 @@ describe('app-dir - metadata-streaming-config-customized', () => {
},
},
})
})
if
(
skipped
)
return
it
(
'should have the customized streaming metadata config output in routes-manifest.json'
,
async
()
=>
{
it
(
'should have the customized streaming metadata config output in routes-manifest.json'
,
async
()
=>
{
const
prerenderManifest
=
JSON
.
parse
(
const
prerenderManifest
=
JSON
.
parse
(
await
next
.
readFile
(
'.next/prerender-manifest.json'
)
await
next
.
readFile
(
'.next/prerender-manifest.json'
)
...
...
test/production/app-dir/metadata-streaming-config/metadata-streaming-config.test.ts
View file @
9df56c2c
...
@@ -4,10 +4,13 @@ import { nextTestSetup } from 'e2e-utils'
...
@@ -4,10 +4,13 @@ import { nextTestSetup } from 'e2e-utils'
process
.
env
.
__NEXT_EXPERIMENTAL_PPR
=
'true'
process
.
env
.
__NEXT_EXPERIMENTAL_PPR
=
'true'
describe
(
'app-dir - metadata-streaming-config'
,
()
=>
{
describe
(
'app-dir - metadata-streaming-config'
,
()
=>
{
const
{
next
}
=
nextTestSetup
({
const
{
next
,
skipped
}
=
nextTestSetup
({
files
:
__dirname
,
files
:
__dirname
,
skipDeployment
:
true
,
})
})
if
(
skipped
)
return
it
(
'should have the default streaming metadata config output in routes-manifest.json'
,
async
()
=>
{
it
(
'should have the default streaming metadata config output in routes-manifest.json'
,
async
()
=>
{
const
requiredServerFiles
=
JSON
.
parse
(
const
requiredServerFiles
=
JSON
.
parse
(
await
next
.
readFile
(
'.next/required-server-files.json'
)
await
next
.
readFile
(
'.next/required-server-files.json'
)
...
...
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