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
Hide 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', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
remove
(
nextConfig
)
await
killApp
(
app
)
...
...
test/integration/404-page-ssg/test/index.test.js
View file @
eb629c15
...
...
@@ -114,7 +114,7 @@ describe('404 Page Support SSG', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
nextConfigContent
)
await
killApp
(
app
)
...
...
test/integration/404-page/test/index.test.js
View file @
eb629c15
...
...
@@ -92,7 +92,7 @@ describe('404 Page Support', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
...
...
test/integration/500-page/test/index.test.js
View file @
eb629c15
...
...
@@ -85,7 +85,7 @@ describe('500 Page Support', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
...
...
test/integration/amphtml-ssg/test/index.test.js
View file @
eb629c15
...
...
@@ -99,7 +99,7 @@ const runTests = (isDev = false) => {
}
describe
(
'AMP SSG Support'
,
()
=>
{
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/api-catch-all/test/index.test.js
View file @
eb629c15
...
...
@@ -73,7 +73,7 @@ describe('API routes', () => {
runTests
()
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/api-support/test/index.test.js
View file @
eb629c15
...
...
@@ -620,7 +620,7 @@ describe('API routes', () => {
runTests
()
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/app-tree/test/index.test.js
View file @
eb629c15
...
...
@@ -69,7 +69,7 @@ describe('AppTree', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/async-modules/test/index.test.js
View file @
eb629c15
...
...
@@ -131,7 +131,7 @@ describe('Async modules', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'// target:'
,
'target:'
)
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', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(()
=>
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/auto-export-query-error/test/index.test.js
View file @
eb629c15
...
...
@@ -41,7 +41,7 @@ describe('Auto Export', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
origNextConfig
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
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'
const
appDir
=
path
.
join
(
__dirname
,
'..'
)
describe
(
'Auto Export Error Serverless'
,
()
=>
{
describe
.
skip
(
'Auto Export Error Serverless'
,
()
=>
{
it
(
'fails to emit the page'
,
async
()
=>
{
const
{
stderr
}
=
await
nextBuild
(
appDir
,
[],
{
stderr
:
true
,
...
...
test/integration/auto-export-serverless/test/index.test.js
View file @
eb629c15
...
...
@@ -8,7 +8,7 @@ const appDir = path.join(__dirname, '..')
let
appPort
let
app
describe
(
'Auto Export Serverless'
,
()
=>
{
describe
.
skip
(
'Auto Export Serverless'
,
()
=>
{
it
(
'Refreshes query on mount'
,
async
()
=>
{
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
...
...
test/integration/basepath-root-catch-all/test/index.test.js
View file @
eb629c15
...
...
@@ -51,7 +51,7 @@ describe('production mode', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'// target'
,
'target'
)
await
nextBuild
(
appDir
)
...
...
test/integration/bigint/test/index.test.js
View file @
eb629c15
...
...
@@ -55,7 +55,7 @@ describe('bigint API route support', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/clean-distdir/test/index.test.js
View file @
eb629c15
...
...
@@ -33,7 +33,7 @@ describe('Cleaning distDir', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
...
...
test/integration/critical-css/test/index.test.js
View file @
eb629c15
...
...
@@ -78,7 +78,7 @@ describe('CSS optimization for SSR apps', () => {
runTests
()
})
describe
(
'Font optimization for emulated serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for emulated serverless apps'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/custom-error/test/index.test.js
View file @
eb629c15
...
...
@@ -103,7 +103,7 @@ describe('Custom _error', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/custom-page-extension/test/index.test.js
View file @
eb629c15
...
...
@@ -47,7 +47,7 @@ describe('Custom page extension', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
const
nextConfig
=
new
File
(
join
(
appDir
,
'next.config.js'
))
beforeAll
(
async
()
=>
{
nextConfig
.
replace
(
'server'
,
'serverless'
)
...
...
test/integration/custom-routes/test/index.test.js
View file @
eb629c15
...
...
@@ -2426,7 +2426,7 @@ describe('Custom routes', () => {
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
await
fs
.
writeFile
(
...
...
@@ -2454,7 +2454,7 @@ describe('Custom routes', () => {
runTests
()
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfigPath
,
'utf8'
)
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', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
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', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
beforeAll
(
async
()
=>
{
...
...
test/integration/dynamic-optional-routing/test/index.test.js
View file @
eb629c15
...
...
@@ -314,7 +314,7 @@ describe('Dynamic Optional Routing', () => {
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
beforeAll
(
async
()
=>
{
...
...
@@ -336,7 +336,7 @@ describe('Dynamic Optional Routing', () => {
runTests
()
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
let
origNextConfig
beforeAll
(
async
()
=>
{
...
...
test/integration/env-config/test/index.test.js
View file @
eb629c15
...
...
@@ -385,7 +385,7 @@ describe('Env Config', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
nextConfigContent
=
''
const
nextConfigPath
=
join
(
appDir
,
'next.config.js'
)
const
envFiles
=
[
...
...
test/integration/fallback-route-params/test/index.test.js
View file @
eb629c15
...
...
@@ -65,7 +65,7 @@ describe('Fallback Dynamic Route Params', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
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', () => {
runTests
()
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/fetch-polyfill/test/index.test.js
View file @
eb629c15
...
...
@@ -123,7 +123,7 @@ describe('Fetch polyfill', () => {
runTests
()
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/font-optimization/test/index.test.js
View file @
eb629c15
...
...
@@ -250,7 +250,7 @@ describe('Font Optimization', () => {
runTests
()
})
describe
(
'Font optimization for serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for serverless apps'
,
()
=>
{
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
beforeAll
(
async
()
=>
{
...
...
@@ -272,7 +272,7 @@ describe('Font Optimization', () => {
runTests
()
})
describe
(
'Font optimization for emulated serverless apps'
,
()
=>
{
describe
.
skip
(
'Font optimization for emulated serverless apps'
,
()
=>
{
const
origNextConfig
=
fs
.
readFileSync
(
nextConfig
)
beforeAll
(
async
()
=>
{
...
...
test/integration/getinitialprops/test/index.test.js
View file @
eb629c15
...
...
@@ -52,7 +52,7 @@ describe('getInitialProps', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextConfig
.
replace
(
'// replace me'
,
`target: 'serverless', `
)
await
nextBuild
(
appDir
)
...
...
test/integration/getserversideprops-export-error/test/index.test.js
View file @
eb629c15
...
...
@@ -29,7 +29,7 @@ const runTests = () => {
}
describe
(
'getServerSideProps'
,
()
=>
{
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
await
fs
.
writeFile
(
...
...
test/integration/getserversideprops-preview/test/index.test.js
View file @
eb629c15
...
...
@@ -294,7 +294,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests
()
})
describe
(
'Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfigPath
,
...
...
@@ -308,7 +308,7 @@ describe('ServerSide Props Preview Mode', () => {
runTests
()
})
describe
(
'Emulated Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Emulated Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfigPath
,
...
...
test/integration/gssp-pageProps-merge/test/index.test.js
View file @
eb629c15
...
...
@@ -56,7 +56,7 @@ describe('pageProps GSSP conflict', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/gssp-redirect-base-path/test/index.test.js
View file @
eb629c15
...
...
@@ -505,7 +505,7 @@ describe('GS(S)P Redirect Support', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
server
beforeAll
(
async
()
=>
{
...
...
test/integration/gssp-redirect/test/index.test.js
View file @
eb629c15
...
...
@@ -542,7 +542,7 @@ describe('GS(S)P Redirect Support', () => {
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
server
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'
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
()
=>
{
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', () => {
runTests
(
ctx
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
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', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
nextConfig
.
replace
(
'// target'
,
'target'
)
...
...
test/integration/i18n-support/test/index.test.js
View file @
eb629c15
...
...
@@ -89,7 +89,7 @@ describe('i18n Support', () => {
})
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
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', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origConfig
beforeAll
(
async
()
=>
{
...
...
test/integration/image-component/default/test/index.test.ts
View file @
eb629c15
...
...
@@ -1447,7 +1447,7 @@ describe('Image Component Tests', () => {
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
...
...
test/integration/index-index/test/index.test.js
View file @
eb629c15
...
...
@@ -209,7 +209,7 @@ describe('nested index.js', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
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', () => {
runTests
(
false
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
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', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/prerender-no-revalidate/test/index.test.js
View file @
eb629c15
...
...
@@ -79,7 +79,7 @@ function runTests(route, routePath, serverless) {
describe
(
'SSG Prerender No Revalidate'
,
()
=>
{
afterAll
(()
=>
fs
.
remove
(
nextConfig
))
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfig
,
...
...
test/integration/prerender-preview/test/index.test.js
View file @
eb629c15
...
...
@@ -405,7 +405,7 @@ describe('Prerender Preview Mode', () => {
runTests
()
})
describe
(
'Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfigPath
,
...
...
@@ -419,7 +419,7 @@ describe('Prerender Preview Mode', () => {
runTests
()
})
describe
(
'Emulated Serverless Mode'
,
()
=>
{
describe
.
skip
(
'Emulated Serverless Mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
nextConfigPath
,
...
...
test/integration/preview-fallback/test/index.test.js
View file @
eb629c15
...
...
@@ -303,7 +303,7 @@ describe('Preview mode with fallback pages', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
module.exports = {
...
...
test/integration/production-browser-sourcemaps/test/index.test.js
View file @
eb629c15
...
...
@@ -51,7 +51,7 @@ describe('Production browser sourcemaps', () => {
runTests
()
})
describe
(
'Serverless support'
,
()
=>
{
describe
.
skip
(
'Serverless support'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfigContent
=
await
fs
.
readFile
(
nextConfig
,
'utf8'
)
await
fs
.
writeFile
(
...
...
test/integration/revalidate-as-path/test/index.test.js
View file @
eb629c15
...
...
@@ -78,7 +78,7 @@ const runTests = (isServerless) => {
}
describe
(
'Revalidate asPath Normalizing'
,
()
=>
{
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
remove
(
join
(
appDir
,
'.next'
))
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', () => {
runTests
()
})
describe
(
'raw serverless mode'
,
()
=>
{
describe
.
skip
(
'raw serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
nextConfig
.
write
(
`
module.exports = {
...
...
test/integration/server-asset-modules/test/index.test.js
View file @
eb629c15
...
...
@@ -56,7 +56,7 @@ describe('serverside asset modules', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
let
origNextConfig
beforeAll
(
async
()
=>
{
...
...
test/integration/serverless-runtime-configs/test/index.test.js
View file @
eb629c15
...
...
@@ -166,15 +166,15 @@ const runTests = (oldServerless = false) => {
})
}
describe
(
'Serverless runtime configs'
,
()
=>
{
describe
.
skip
(
'Serverless runtime configs'
,
()
=>
{
beforeAll
(()
=>
cleanUp
())
afterAll
(()
=>
cleanUp
())
describe
(
'legacy serverless mode'
,
()
=>
{
describe
.
skip
(
'legacy serverless mode'
,
()
=>
{
runTests
(
true
)
})
describe
(
'experimental-serverless-trace mode'
,
()
=>
{
describe
.
skip
(
'experimental-serverless-trace mode'
,
()
=>
{
runTests
()
})
})
test/integration/serverless-trace-revalidate/test/index.test.js
View file @
eb629c15
...
...
@@ -27,7 +27,7 @@ const nextStart = async (appDir, appPort) => {
)
}
describe
(
'Serverless Trace'
,
()
=>
{
describe
.
skip
(
'Serverless Trace'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
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')
let
appPort
let
app
describe
(
'Serverless Trace'
,
()
=>
{
describe
.
skip
(
'Serverless Trace'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
nextBuild
(
appDir
)
appPort
=
await
findPort
()
...
...
test/integration/serverless/test/index.test.js
View file @
eb629c15
...
...
@@ -25,7 +25,7 @@ let stderr = ''
let
appPort
let
app
describe
(
'Serverless'
,
()
=>
{
describe
.
skip
(
'Serverless'
,
()
=>
{
let
output
beforeAll
(
async
()
=>
{
...
...
test/integration/src-dir-support-double-dir/test/index.test.js
View file @
eb629c15
...
...
@@ -57,7 +57,7 @@ describe('Dynamic Routing', () => {
runTests
()
})
describe
(
'serverless production mode'
,
()
=>
{
describe
.
skip
(
'serverless production mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
await
fs
.
writeFile
(
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', () =>
runTests
(
'server'
)
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
afterAll
(
async
()
=>
{
await
fs
.
remove
(
nextConfig
)
await
killApp
(
app
)
...
...
test/integration/static-page-name/test/index.test.js
View file @
eb629c15
...
...
@@ -52,7 +52,7 @@ describe('Static Page Name', () => {
runTests
()
})
describe
(
'serverless mode'
,
()
=>
{
describe
.
skip
(
'serverless mode'
,
()
=>
{
beforeAll
(
async
()
=>
{
appPort
=
await
findPort
()
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
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
()
=>
{
const
{
code
,
stderr
}
=
await
nextBuild
(
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