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
eb629c15
Unverified
Commit
eb629c15
authored
Oct 07, 2022
by
Tim Neutkens
Committed by
GitHub
Oct 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip serverless/serverless-trace target tests (#41252)
parent
bef709bc
Show whitespace changes
Inline
Side-by-side
Showing
58 changed files
with
65 additions
and
65 deletions
+65
-65
index.test.js
test/integration/404-page-custom-error/test/index.test.js
+1
-1
index.test.js
test/integration/404-page-ssg/test/index.test.js
+1
-1
index.test.js
test/integration/404-page/test/index.test.js
+1
-1
index.test.js
test/integration/500-page/test/index.test.js
+1
-1
index.test.js
test/integration/amphtml-ssg/test/index.test.js
+1
-1
index.test.js
test/integration/api-catch-all/test/index.test.js
+1
-1
index.test.js
test/integration/api-support/test/index.test.js
+1
-1
index.test.js
test/integration/app-tree/test/index.test.js
+1
-1
index.test.js
test/integration/async-modules/test/index.test.js
+1
-1
index.test.js
test/integration/auto-export-error-bail/test/index.test.js
+1
-1
index.test.js
test/integration/auto-export-query-error/test/index.test.js
+1
-1
index.test.js
...tegration/auto-export-serverless-error/test/index.test.js
+1
-1
index.test.js
test/integration/auto-export-serverless/test/index.test.js
+1
-1
index.test.js
test/integration/basepath-root-catch-all/test/index.test.js
+1
-1
index.test.js
test/integration/bigint/test/index.test.js
+1
-1
index.test.js
test/integration/clean-distdir/test/index.test.js
+1
-1
index.test.js
test/integration/critical-css/test/index.test.js
+1
-1
index.test.js
test/integration/custom-error/test/index.test.js
+1
-1
index.test.js
test/integration/custom-page-extension/test/index.test.js
+1
-1
index.test.js
test/integration/custom-routes/test/index.test.js
+2
-2
index.test.js
...dynamic-optional-routing-root-fallback/test/index.test.js
+1
-1
index.test.js
...mic-optional-routing-root-static-paths/test/index.test.js
+1
-1
index.test.js
test/integration/dynamic-optional-routing/test/index.test.js
+2
-2
index.test.js
test/integration/env-config/test/index.test.js
+1
-1
index.test.js
test/integration/fallback-route-params/test/index.test.js
+1
-1
index.test.js
...ntegration/fetch-polyfill-ky-universal/test/index.test.js
+1
-1
index.test.js
test/integration/fetch-polyfill/test/index.test.js
+1
-1
index.test.js
test/integration/font-optimization/test/index.test.js
+2
-2
index.test.js
test/integration/getinitialprops/test/index.test.js
+1
-1
index.test.js
...ration/getserversideprops-export-error/test/index.test.js
+1
-1
index.test.js
...integration/getserversideprops-preview/test/index.test.js
+2
-2
index.test.js
test/integration/gssp-pageProps-merge/test/index.test.js
+1
-1
index.test.js
test/integration/gssp-redirect-base-path/test/index.test.js
+1
-1
index.test.js
test/integration/gssp-redirect/test/index.test.js
+1
-1
index.test.js
test/integration/handle-non-page-in-pages/test/index.test.js
+1
-1
index.test.js
test/integration/i18n-support-base-path/test/index.test.js
+1
-1
index.test.js
test/integration/i18n-support-catchall/test/index.test.js
+1
-1
index.test.js
test/integration/i18n-support/test/index.test.js
+1
-1
index.test.ts
.../integration/image-component/base-path/test/index.test.ts
+1
-1
index.test.ts
test/integration/image-component/default/test/index.test.ts
+1
-1
index.test.js
test/integration/index-index/test/index.test.js
+1
-1
index.test.js
test/integration/legacy-ssg-methods-error/test/index.test.js
+1
-1
index.test.js
...n/optional-chaining-nullish-coalescing/test/index.test.js
+1
-1
index.test.js
test/integration/prerender-no-revalidate/test/index.test.js
+1
-1
index.test.js
test/integration/prerender-preview/test/index.test.js
+2
-2
index.test.js
test/integration/preview-fallback/test/index.test.js
+1
-1
index.test.js
...egration/production-browser-sourcemaps/test/index.test.js
+1
-1
index.test.js
test/integration/revalidate-as-path/test/index.test.js
+1
-1
index.test.js
test/integration/root-optional-revalidate/test/index.test.js
+1
-1
index.test.js
test/integration/server-asset-modules/test/index.test.js
+1
-1
index.test.js
...integration/serverless-runtime-configs/test/index.test.js
+3
-3
index.test.js
...ntegration/serverless-trace-revalidate/test/index.test.js
+1
-1
index.test.js
test/integration/serverless-trace/test/index.test.js
+1
-1
index.test.js
test/integration/serverless/test/index.test.js
+1
-1
index.test.js
...integration/src-dir-support-double-dir/test/index.test.js
+1
-1
index.test.js
...ntegration/ssg-dynamic-routes-404-page/test/index.test.js
+1
-1
index.test.js
test/integration/static-page-name/test/index.test.js
+1
-1
index.test.ts
...is-not-allowed-when-using-serverless-target/index.test.ts
+1
-1
No files found.
test/integration/404-page-custom-error/test/index.test.js
View file @
eb629c15
...
@@ -71,7 +71,7 @@ describe('Default 404 Page with custom _error', () => {
...
@@ -71,7 +71,7 @@ describe('Default 404 Page with custom _error', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
remove
(
nextConfig
)
await
fs
.
remove
(
nextConfig
)
await
killApp
(
app
)
await
killApp
(
app
)
...
...
test/integration/404-page-ssg/test/index.test.js
View file @
eb629c15
...
@@ -114,7 +114,7 @@ describe('404 Page Support SSG', () => {
...
@@ -114,7 +114,7 @@ describe('404 Page Support SSG', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
nextConfigContent
)
await
fs
.
writeFile
(
nextConfig
,
nextConfigContent
)
await
killApp
(
app
)
await
killApp
(
app
)
...
...
test/integration/404-page/test/index.test.js
View file @
eb629c15
...
@@ -92,7 +92,7 @@ describe('404 Page Support', () => {
...
@@ -92,7 +92,7 @@ describe('404 Page Support', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/500-page/test/index.test.js
View file @
eb629c15
...
@@ -85,7 +85,7 @@ describe('500 Page Support', () => {
...
@@ -85,7 +85,7 @@ describe('500 Page Support', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/amphtml-ssg/test/index.test.js
View file @
eb629c15
...
@@ -99,7 +99,7 @@ const runTests = (isDev = false) => {
...
@@ -99,7 +99,7 @@ const runTests = (isDev = false) => {
}
}
describe
(
'AMP SSG Support'
,
()
=>
{
describe
(
'AMP SSG Support'
,
()
=>
{
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/api-catch-all/test/index.test.js
View file @
eb629c15
...
@@ -73,7 +73,7 @@ describe('API routes', () => {
...
@@ -73,7 +73,7 @@ describe('API routes', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/api-support/test/index.test.js
View file @
eb629c15
...
@@ -620,7 +620,7 @@ describe('API routes', () => {
...
@@ -620,7 +620,7 @@ describe('API routes', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/app-tree/test/index.test.js
View file @
eb629c15
...
@@ -69,7 +69,7 @@ describe('AppTree', () => {
...
@@ -69,7 +69,7 @@ describe('AppTree', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/async-modules/test/index.test.js
View file @
eb629c15
...
@@ -131,7 +131,7 @@ describe('Async modules', () => {
...
@@ -131,7 +131,7 @@ describe('Async modules', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'// target:'
,
'target:'
)
nextConfig
.
replace
(
'// target:'
,
'target:'
)
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
...
...
test/integration/auto-export-error-bail/test/index.test.js
View file @
eb629c15
...
@@ -36,7 +36,7 @@ describe('Auto Export _error bail', () => {
...
@@ -36,7 +36,7 @@ describe('Auto Export _error bail', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(()
=>
beforeAll
(()
=>
fs
.
writeFile
(
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/auto-export-query-error/test/index.test.js
View file @
eb629c15
...
@@ -41,7 +41,7 @@ describe('Auto Export', () => {
...
@@ -41,7 +41,7 @@ describe('Auto Export', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
origNextConfig
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
origNextConfig
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
...
...
test/integration/auto-export-serverless-error/test/index.test.js
View file @
eb629c15
...
@@ -6,7 +6,7 @@ import { nextBuild } from 'next-test-utils'
...
@@ -6,7 +6,7 @@ import { nextBuild } from 'next-test-utils'
const
appDir
=
path
.
join
(
__dirname
,
'..'
)
const
appDir
=
path
.
join
(
__dirname
,
'..'
)
describe
(
'Auto Export Error Serverless'
,
()
=>
{
describe
.
skip
(
'Auto Export Error Serverless'
,
()
=>
{
it
(
'fails to emit the page'
,
async
()
=>
{
it
(
'fails to emit the page'
,
async
()
=>
{
const
{
stderr
}
=
await
nextBuild
(
appDir
,
[],
{
const
{
stderr
}
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
,
stderr
:
true
,
...
...
test/integration/auto-export-serverless/test/index.test.js
View file @
eb629c15
...
@@ -8,7 +8,7 @@ const appDir = path.join(__dirname, '..')
...
@@ -8,7 +8,7 @@ const appDir = path.join(__dirname, '..')
let
appPort
let
appPort
let
app
let
app
describe
(
'Auto Export Serverless'
,
()
=>
{
describe
.
skip
(
'Auto Export Serverless'
,
()
=>
{
it
(
'Refreshes query on mount'
,
async
()
=>
{
it
(
'Refreshes query on mount'
,
async
()
=>
{
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
appPort
=
await
findPort
()
...
...
test/integration/basepath-root-catch-all/test/index.test.js
View file @
eb629c15
...
@@ -51,7 +51,7 @@ describe('production mode', () => {
...
@@ -51,7 +51,7 @@ describe('production mode', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'// target'
,
'target'
)
nextConfig
.
replace
(
'// target'
,
'target'
)
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
...
...
test/integration/bigint/test/index.test.js
View file @
eb629c15
...
@@ -55,7 +55,7 @@ describe('bigint API route support', () => {
...
@@ -55,7 +55,7 @@ describe('bigint API route support', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/clean-distdir/test/index.test.js
View file @
eb629c15
...
@@ -33,7 +33,7 @@ describe('Cleaning distDir', () => {
...
@@ -33,7 +33,7 @@ describe('Cleaning distDir', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/critical-css/test/index.test.js
View file @
eb629c15
...
@@ -78,7 +78,7 @@ describe('CSS optimization for SSR apps', () => {
...
@@ -78,7 +78,7 @@ describe('CSS optimization for SSR apps', () => {
runTests
()
runTests
()
})
})
describe
(
'Font optimization for emulated serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for emulated serverless apps'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/custom-error/test/index.test.js
View file @
eb629c15
...
@@ -103,7 +103,7 @@ describe('Custom _error', () => {
...
@@ -103,7 +103,7 @@ describe('Custom _error', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/custom-page-extension/test/index.test.js
View file @
eb629c15
...
@@ -47,7 +47,7 @@ describe('Custom page extension', () => {
...
@@ -47,7 +47,7 @@ describe('Custom page extension', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
const
nextConfig
=
new
File
(
join
(
appDir
,
'next.config.js'
))
const
nextConfig
=
new
File
(
join
(
appDir
,
'next.config.js'
))
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'server'
,
'serverless'
)
nextConfig
.
replace
(
'server'
,
'serverless'
)
...
...
test/integration/custom-routes/test/index.test.js
View file @
eb629c15
...
@@ -2426,7 +2426,7 @@ describe('Custom routes', () => {
...
@@ -2426,7 +2426,7 @@ describe('Custom routes', () => {
})
})
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
@@ -2454,7 +2454,7 @@ describe('Custom routes', () => {
...
@@ -2454,7 +2454,7 @@ describe('Custom routes', () => {
runTests
()
runTests
()
})
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/dynamic-optional-routing-root-fallback/test/index.test.js
View file @
eb629c15
...
@@ -82,7 +82,7 @@ describe('Dynamic Optional Routing Root Fallback', () => {
...
@@ -82,7 +82,7 @@ describe('Dynamic Optional Routing Root Fallback', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/dynamic-optional-routing-root-static-paths/test/index.test.js
View file @
eb629c15
...
@@ -66,7 +66,7 @@ describe('Dynamic Optional Routing', () => {
...
@@ -66,7 +66,7 @@ describe('Dynamic Optional Routing', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/dynamic-optional-routing/test/index.test.js
View file @
eb629c15
...
@@ -314,7 +314,7 @@ describe('Dynamic Optional Routing', () => {
...
@@ -314,7 +314,7 @@ describe('Dynamic Optional Routing', () => {
})
})
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
@@ -336,7 +336,7 @@ describe('Dynamic Optional Routing', () => {
...
@@ -336,7 +336,7 @@ describe('Dynamic Optional Routing', () => {
runTests
()
runTests
()
})
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/env-config/test/index.test.js
View file @
eb629c15
...
@@ -385,7 +385,7 @@ describe('Env Config', () => {
...
@@ -385,7 +385,7 @@ describe('Env Config', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
nextConfigContent
=
''
let
nextConfigContent
=
''
const
nextConfigPath
=
join
(
appDir
,
'next.config.js'
)
const
nextConfigPath
=
join
(
appDir
,
'next.config.js'
)
const
envFiles
=
[
const
envFiles
=
[
...
...
test/integration/fallback-route-params/test/index.test.js
View file @
eb629c15
...
@@ -65,7 +65,7 @@ describe('Fallback Dynamic Route Params', () => {
...
@@ -65,7 +65,7 @@ describe('Fallback Dynamic Route Params', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
nextConfig
.
write
(
`
module.exports = {
module.exports = {
...
...
test/integration/fetch-polyfill-ky-universal/test/index.test.js
View file @
eb629c15
...
@@ -104,7 +104,7 @@ describe('Fetch polyfill with ky-universal', () => {
...
@@ -104,7 +104,7 @@ describe('Fetch polyfill with ky-universal', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/fetch-polyfill/test/index.test.js
View file @
eb629c15
...
@@ -123,7 +123,7 @@ describe('Fetch polyfill', () => {
...
@@ -123,7 +123,7 @@ describe('Fetch polyfill', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/font-optimization/test/index.test.js
View file @
eb629c15
...
@@ -250,7 +250,7 @@ describe('Font Optimization', () => {
...
@@ -250,7 +250,7 @@ describe('Font Optimization', () => {
runTests
()
runTests
()
})
})
describe
(
'Font optimization for serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for serverless apps'
,
()
=>
{
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
@@ -272,7 +272,7 @@ describe('Font Optimization', () => {
...
@@ -272,7 +272,7 @@ describe('Font Optimization', () => {
runTests
()
runTests
()
})
})
describe
(
'Font optimization for emulated serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for emulated serverless apps'
,
()
=>
{
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/getinitialprops/test/index.test.js
View file @
eb629c15
...
@@ -52,7 +52,7 @@ describe('getInitialProps', () => {
...
@@ -52,7 +52,7 @@ describe('getInitialProps', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
nextConfig
.
replace
(
'// replace me'
,
`target: 'serverless', `
)
await
nextConfig
.
replace
(
'// replace me'
,
`target: 'serverless', `
)
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
...
...
test/integration/getserversideprops-export-error/test/index.test.js
View file @
eb629c15
...
@@ -29,7 +29,7 @@ const runTests = () => {
...
@@ -29,7 +29,7 @@ const runTests = () => {
}
}
describe
(
'getServerSideProps'
,
()
=>
{
describe
(
'getServerSideProps'
,
()
=>
{
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/getserversideprops-preview/test/index.test.js
View file @
eb629c15
...
@@ -294,7 +294,7 @@ describe('ServerSide Props Preview Mode', () => {
...
@@ -294,7 +294,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfigPath
,
nextConfigPath
,
...
@@ -308,7 +308,7 @@ describe('ServerSide Props Preview Mode', () => {
...
@@ -308,7 +308,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests
()
runTests
()
})
})
describe
(
'Emulated Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Emulated Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfigPath
,
nextConfigPath
,
...
...
test/integration/gssp-pageProps-merge/test/index.test.js
View file @
eb629c15
...
@@ -56,7 +56,7 @@ describe('pageProps GSSP conflict', () => {
...
@@ -56,7 +56,7 @@ describe('pageProps GSSP conflict', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/gssp-redirect-base-path/test/index.test.js
View file @
eb629c15
...
@@ -505,7 +505,7 @@ describe('GS(S)P Redirect Support', () => {
...
@@ -505,7 +505,7 @@ describe('GS(S)P Redirect Support', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
server
let
server
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/gssp-redirect/test/index.test.js
View file @
eb629c15
...
@@ -542,7 +542,7 @@ describe('GS(S)P Redirect Support', () => {
...
@@ -542,7 +542,7 @@ describe('GS(S)P Redirect Support', () => {
})
})
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
server
let
server
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/handle-non-page-in-pages/test/index.test.js
View file @
eb629c15
...
@@ -5,7 +5,7 @@ import { nextBuild } from 'next-test-utils'
...
@@ -5,7 +5,7 @@ import { nextBuild } from 'next-test-utils'
const
appDir
=
path
.
join
(
__dirname
,
'..'
)
const
appDir
=
path
.
join
(
__dirname
,
'..'
)
describe
(
'Handle non-page in pages when target: serverless'
,
()
=>
{
describe
.
skip
(
'Handle non-page in pages when target: serverless'
,
()
=>
{
it
(
'Fails softly with descriptive error'
,
async
()
=>
{
it
(
'Fails softly with descriptive error'
,
async
()
=>
{
const
{
stderr
}
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
})
const
{
stderr
}
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
})
...
...
test/integration/i18n-support-base-path/test/index.test.js
View file @
eb629c15
...
@@ -72,7 +72,7 @@ describe('i18n Support basePath', () => {
...
@@ -72,7 +72,7 @@ describe('i18n Support basePath', () => {
runTests
(
ctx
)
runTests
(
ctx
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
nextConfig
.
replace
(
'// target'
,
'target'
)
nextConfig
.
replace
(
'// target'
,
'target'
)
...
...
test/integration/i18n-support-catchall/test/index.test.js
View file @
eb629c15
...
@@ -250,7 +250,7 @@ describe('i18n Support Root Catch-all', () => {
...
@@ -250,7 +250,7 @@ describe('i18n Support Root Catch-all', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
nextConfig
.
replace
(
'// target'
,
'target'
)
nextConfig
.
replace
(
'// target'
,
'target'
)
...
...
test/integration/i18n-support/test/index.test.js
View file @
eb629c15
...
@@ -89,7 +89,7 @@ describe('i18n Support', () => {
...
@@ -89,7 +89,7 @@ describe('i18n Support', () => {
})
})
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
nextConfig
.
replace
(
'// target'
,
'target'
)
nextConfig
.
replace
(
'// target'
,
'target'
)
...
...
test/integration/image-component/base-path/test/index.test.ts
View file @
eb629c15
...
@@ -505,7 +505,7 @@ describe('Image Component basePath Tests', () => {
...
@@ -505,7 +505,7 @@ describe('Image Component basePath Tests', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origConfig
let
origConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/image-component/default/test/index.test.ts
View file @
eb629c15
...
@@ -1447,7 +1447,7 @@ describe('Image Component Tests', () => {
...
@@ -1447,7 +1447,7 @@ describe('Image Component Tests', () => {
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
appPort
=
await
findPort
()
...
...
test/integration/index-index/test/index.test.js
View file @
eb629c15
...
@@ -209,7 +209,7 @@ describe('nested index.js', () => {
...
@@ -209,7 +209,7 @@ describe('nested index.js', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/legacy-ssg-methods-error/test/index.test.js
View file @
eb629c15
...
@@ -73,7 +73,7 @@ describe('Mixed getStaticProps and getServerSideProps error', () => {
...
@@ -73,7 +73,7 @@ describe('Mixed getStaticProps and getServerSideProps error', () => {
runTests
(
false
)
runTests
(
false
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
runTests
(
true
)
runTests
(
true
)
})
})
})
})
test/integration/optional-chaining-nullish-coalescing/test/index.test.js
View file @
eb629c15
...
@@ -53,7 +53,7 @@ describe('Optional chaining and nullish coalescing support', () => {
...
@@ -53,7 +53,7 @@ describe('Optional chaining and nullish coalescing support', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/prerender-no-revalidate/test/index.test.js
View file @
eb629c15
...
@@ -79,7 +79,7 @@ function runTests(route, routePath, serverless) {
...
@@ -79,7 +79,7 @@ function runTests(route, routePath, serverless) {
describe
(
'SSG Prerender No Revalidate'
,
()
=>
{
describe
(
'SSG Prerender No Revalidate'
,
()
=>
{
afterAll
(()
=>
fs
.
remove
(
nextConfig
))
afterAll
(()
=>
fs
.
remove
(
nextConfig
))
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/prerender-preview/test/index.test.js
View file @
eb629c15
...
@@ -405,7 +405,7 @@ describe('Prerender Preview Mode', () => {
...
@@ -405,7 +405,7 @@ describe('Prerender Preview Mode', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfigPath
,
nextConfigPath
,
...
@@ -419,7 +419,7 @@ describe('Prerender Preview Mode', () => {
...
@@ -419,7 +419,7 @@ describe('Prerender Preview Mode', () => {
runTests
()
runTests
()
})
})
describe
(
'Emulated Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Emulated Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfigPath
,
nextConfigPath
,
...
...
test/integration/preview-fallback/test/index.test.js
View file @
eb629c15
...
@@ -303,7 +303,7 @@ describe('Preview mode with fallback pages', () => {
...
@@ -303,7 +303,7 @@ describe('Preview mode with fallback pages', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
nextConfig
.
write
(
`
module.exports = {
module.exports = {
...
...
test/integration/production-browser-sourcemaps/test/index.test.js
View file @
eb629c15
...
@@ -51,7 +51,7 @@ describe('Production browser sourcemaps', () => {
...
@@ -51,7 +51,7 @@ describe('Production browser sourcemaps', () => {
runTests
()
runTests
()
})
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/revalidate-as-path/test/index.test.js
View file @
eb629c15
...
@@ -78,7 +78,7 @@ const runTests = (isServerless) => {
...
@@ -78,7 +78,7 @@ const runTests = (isServerless) => {
}
}
describe
(
'Revalidate asPath Normalizing'
,
()
=>
{
describe
(
'Revalidate asPath Normalizing'
,
()
=>
{
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/integration/root-optional-revalidate/test/index.test.js
View file @
eb629c15
...
@@ -88,7 +88,7 @@ describe('Root Optional Catch-all Revalidate', () => {
...
@@ -88,7 +88,7 @@ describe('Root Optional Catch-all Revalidate', () => {
runTests
()
runTests
()
})
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
nextConfig
.
write
(
`
module.exports = {
module.exports = {
...
...
test/integration/server-asset-modules/test/index.test.js
View file @
eb629c15
...
@@ -56,7 +56,7 @@ describe('serverside asset modules', () => {
...
@@ -56,7 +56,7 @@ describe('serverside asset modules', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
let
origNextConfig
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/serverless-runtime-configs/test/index.test.js
View file @
eb629c15
...
@@ -166,15 +166,15 @@ const runTests = (oldServerless = false) => {
...
@@ -166,15 +166,15 @@ const runTests = (oldServerless = false) => {
})
})
}
}
describe
(
'Serverless runtime configs'
,
()
=>
{
describe
.
skip
(
'Serverless runtime configs'
,
()
=>
{
beforeAll
(()
=>
cleanUp
())
beforeAll
(()
=>
cleanUp
())
afterAll
(()
=>
cleanUp
())
afterAll
(()
=>
cleanUp
())
describe
(
'legacy serverless mode'
,
()
=>
{
describe
.
skip
(
'legacy serverless mode'
,
()
=>
{
runTests
(
true
)
runTests
(
true
)
})
})
describe
(
'experimental-serverless-trace mode'
,
()
=>
{
describe
.
skip
(
'experimental-serverless-trace mode'
,
()
=>
{
runTests
()
runTests
()
})
})
})
})
test/integration/serverless-trace-revalidate/test/index.test.js
View file @
eb629c15
...
@@ -27,7 +27,7 @@ const nextStart = async (appDir, appPort) => {
...
@@ -27,7 +27,7 @@ const nextStart = async (appDir, appPort) => {
)
)
}
}
describe
(
'Serverless Trace'
,
()
=>
{
describe
.
skip
(
'Serverless Trace'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
appPort
=
await
findPort
()
...
...
test/integration/serverless-trace/test/index.test.js
View file @
eb629c15
...
@@ -21,7 +21,7 @@ const chunksDir = join(appDir, '.next/static/chunks')
...
@@ -21,7 +21,7 @@ const chunksDir = join(appDir, '.next/static/chunks')
let
appPort
let
appPort
let
app
let
app
describe
(
'Serverless Trace'
,
()
=>
{
describe
.
skip
(
'Serverless Trace'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
appPort
=
await
findPort
()
...
...
test/integration/serverless/test/index.test.js
View file @
eb629c15
...
@@ -25,7 +25,7 @@ let stderr = ''
...
@@ -25,7 +25,7 @@ let stderr = ''
let
appPort
let
appPort
let
app
let
app
describe
(
'Serverless'
,
()
=>
{
describe
.
skip
(
'Serverless'
,
()
=>
{
let
output
let
output
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
...
...
test/integration/src-dir-support-double-dir/test/index.test.js
View file @
eb629c15
...
@@ -57,7 +57,7 @@ describe('Dynamic Routing', () => {
...
@@ -57,7 +57,7 @@ describe('Dynamic Routing', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless production mode'
,
()
=>
{
describe
.
skip
(
'serverless production mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
await
fs
.
writeFile
(
nextConfig
,
nextConfig
,
...
...
test/integration/ssg-dynamic-routes-404-page/test/index.test.js
View file @
eb629c15
...
@@ -45,7 +45,7 @@ describe('Custom 404 Page for static site generation with dynamic routes', () =>
...
@@ -45,7 +45,7 @@ describe('Custom 404 Page for static site generation with dynamic routes', () =>
runTests
(
'server'
)
runTests
(
'server'
)
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
remove
(
nextConfig
)
await
fs
.
remove
(
nextConfig
)
await
killApp
(
app
)
await
killApp
(
app
)
...
...
test/integration/static-page-name/test/index.test.js
View file @
eb629c15
...
@@ -52,7 +52,7 @@ describe('Static Page Name', () => {
...
@@ -52,7 +52,7 @@ describe('Static Page Name', () => {
runTests
()
runTests
()
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
beforeAll
(
async
()
=>
{
appPort
=
await
findPort
()
appPort
=
await
findPort
()
await
fs
.
writeFile
(
await
fs
.
writeFile
(
...
...
test/production/middleware-is-not-allowed-when-using-serverless-target/index.test.ts
View file @
eb629c15
import
{
nextBuild
}
from
'next-test-utils'
import
{
nextBuild
}
from
'next-test-utils'
import
path
from
'path'
import
path
from
'path'
describe
(
'Middleware is not allowed when using serverless target'
,
()
=>
{
describe
.
skip
(
'Middleware is not allowed when using serverless target'
,
()
=>
{
it
(
'fails to build'
,
async
()
=>
{
it
(
'fails to build'
,
async
()
=>
{
const
{
code
,
stderr
}
=
await
nextBuild
(
const
{
code
,
stderr
}
=
await
nextBuild
(
path
.
resolve
(
__dirname
,
'./app'
),
path
.
resolve
(
__dirname
,
'./app'
),
...
...
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