Unverified Commit cbe8238e authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Skip production tests for Turbopack (#56089)

Follow-up to #56045. Found there was a group of tests for production
called `server mode` instead of `production mode`, those are skipped too
now.

<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->
parent 3eadfe92
import { createNextDescribe } from 'e2e-utils' import { createNextDescribe } from 'e2e-utils'
import { check } from 'next-test-utils' import { check } from 'next-test-utils'
;(process.env.TURBOPACK ? describe.skip : describe)(
createNextDescribe( 'instrumentation-hook-rsc',
'instrumentation-hook-src', () => {
createNextDescribe(
'instrumentation',
{ {
files: __dirname, files: __dirname,
nextConfig: { nextConfig: {
...@@ -50,9 +52,14 @@ createNextDescribe( ...@@ -50,9 +52,14 @@ createNextDescribe(
'./src/instrumentation.js.bak', './src/instrumentation.js.bak',
'./src/instrumentation.js' './src/instrumentation.js'
) )
await check(() => next.cliOutput, /The instrumentation file was added/) await check(
() => next.cliOutput,
/The instrumentation file was added/
)
await check(() => next.cliOutput, /bread/) await check(() => next.cliOutput, /bread/)
}) })
} }
} }
)
}
) )
...@@ -20,7 +20,9 @@ const describeCase = ( ...@@ -20,7 +20,9 @@ const describeCase = (
callback callback
) )
} }
describe('Instrumentation Hook', () => { ;(process.env.TURBOPACK ? describe.skip : describe)(
'Instrumentation Hook',
() => {
// TODO: investigate the failure with esm import // TODO: investigate the failure with esm import
// createNextDescribe( // createNextDescribe(
// 'with-esm-import', // 'with-esm-import',
...@@ -128,9 +130,13 @@ describe('Instrumentation Hook', () => { ...@@ -128,9 +130,13 @@ describe('Instrumentation Hook', () => {
'./instrumentation.js.bak', './instrumentation.js.bak',
'./instrumentation.js' './instrumentation.js'
) )
await check(() => next.cliOutput, /The instrumentation file was added/) await check(
() => next.cliOutput,
/The instrumentation file was added/
)
await check(() => next.cliOutput, /bread/) await check(() => next.cliOutput, /bread/)
}) })
} }
}) })
}) }
)
...@@ -51,7 +51,7 @@ const runTests = (mode) => { ...@@ -51,7 +51,7 @@ const runTests = (mode) => {
} }
describe('Default 404 Page with custom _error', () => { describe('Default 404 Page with custom _error', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
afterAll(() => killApp(app)) afterAll(() => killApp(app))
it('should build successfully', async () => { it('should build successfully', async () => {
......
...@@ -76,7 +76,7 @@ const runTests = (isDev) => { ...@@ -76,7 +76,7 @@ const runTests = (isDev) => {
} }
describe('404 Page Support SSG', () => { describe('404 Page Support SSG', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
afterAll(() => killApp(app)) afterAll(() => killApp(app))
it('should build successfully', async () => { it('should build successfully', async () => {
......
...@@ -79,8 +79,7 @@ describe('404 Page Support', () => { ...@@ -79,8 +79,7 @@ describe('404 Page Support', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -70,8 +70,7 @@ describe('500 Page Support', () => { ...@@ -70,8 +70,7 @@ describe('500 Page Support', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await fs.remove(join(appDir, '.next')) await fs.remove(join(appDir, '.next'))
await nextBuild(appDir) await nextBuild(appDir)
......
...@@ -98,7 +98,7 @@ const runTests = (isDev = false) => { ...@@ -98,7 +98,7 @@ const runTests = (isDev = false) => {
} }
describe('AMP SSG Support', () => { describe('AMP SSG Support', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -30,7 +30,7 @@ const runTests = () => { ...@@ -30,7 +30,7 @@ const runTests = () => {
} }
describe('Auto Export _error bail', () => { describe('Auto Export _error bail', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
runTests() runTests()
}) })
}) })
...@@ -22,7 +22,7 @@ const runTests = () => { ...@@ -22,7 +22,7 @@ const runTests = () => {
} }
describe('Auto Export', () => { describe('Auto Export', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
const { stderr: curStderr, code: curCode } = await nextExport( const { stderr: curStderr, code: curCode } = await nextExport(
......
...@@ -42,8 +42,7 @@ describe('bigint API route support', () => { ...@@ -42,8 +42,7 @@ describe('bigint API route support', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await fs.remove(nextConfig) await fs.remove(nextConfig)
await nextBuild(appDir) await nextBuild(appDir)
......
...@@ -23,10 +23,13 @@ const existsChunkNamed = (name) => { ...@@ -23,10 +23,13 @@ const existsChunkNamed = (name) => {
} }
describe('Chunking', () => { describe('Chunking', () => {
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
beforeAll(async () => { beforeAll(async () => {
try { try {
// If a previous build has left chunks behind, delete them // If a previous build has left chunks behind, delete them
const oldChunks = await readdir(join(appDir, '.next', 'static', 'chunks')) const oldChunks = await readdir(
join(appDir, '.next', 'static', 'chunks')
)
await Promise.all( await Promise.all(
oldChunks.map((chunk) => { oldChunks.map((chunk) => {
return unlink(join(appDir, '.next', 'static', 'chunks', chunk)) return unlink(join(appDir, '.next', 'static', 'chunks', chunk))
...@@ -127,4 +130,5 @@ describe('Chunking', () => { ...@@ -127,4 +130,5 @@ describe('Chunking', () => {
await browser.close() await browser.close()
}) })
}) })
})
}) })
...@@ -29,7 +29,7 @@ const runTests = () => { ...@@ -29,7 +29,7 @@ const runTests = () => {
} }
describe('Cleaning distDir', () => { describe('Cleaning distDir', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
runTests() runTests()
}) })
......
...@@ -2785,8 +2785,7 @@ describe('Custom routes', () => { ...@@ -2785,8 +2785,7 @@ describe('Custom routes', () => {
) )
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
const { stdout: buildStdout, stderr: buildStderr } = await nextBuild( const { stdout: buildStdout, stderr: buildStderr } = await nextBuild(
appDir, appDir,
......
...@@ -117,8 +117,7 @@ describe('Test Draft Mode', () => { ...@@ -117,8 +117,7 @@ describe('Test Draft Mode', () => {
await killApp(app) await killApp(app)
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('Server Mode', () => {
let appPort, app, cookieString, initialRand let appPort, app, cookieString, initialRand
const getOpts = () => ({ headers: { Cookie: cookieString } }) const getOpts = () => ({ headers: { Cookie: cookieString } })
......
...@@ -364,8 +364,7 @@ describe('Env Config', () => { ...@@ -364,8 +364,7 @@ describe('Env Config', () => {
runTests('test') runTests('test')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
const { code } = await nextBuild(appDir, [], { const { code } = await nextBuild(appDir, [], {
env: { env: {
......
...@@ -14,7 +14,9 @@ import { ...@@ -14,7 +14,9 @@ import {
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
const outdir = join(appDir, 'out') const outdir = join(appDir, 'out')
describe('Export Dyanmic Pages', () => { ;(process.env.TURBOPACK ? describe.skip : describe)(
'Export Dynamic Pages',
() => {
let server let server
let port let port
beforeAll(async () => { beforeAll(async () => {
...@@ -46,4 +48,5 @@ describe('Export Dyanmic Pages', () => { ...@@ -46,4 +48,5 @@ describe('Export Dyanmic Pages', () => {
await browser.close() await browser.close()
} }
}) })
}) }
)
...@@ -269,8 +269,7 @@ describe('ServerSide Props Preview Mode', () => { ...@@ -269,8 +269,7 @@ describe('ServerSide Props Preview Mode', () => {
await killApp(app) await killApp(app)
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('Server Mode', () => {
runTests() runTests()
}) })
}) })
...@@ -41,8 +41,7 @@ describe('Image Component assetPrefix Tests', () => { ...@@ -41,8 +41,7 @@ describe('Image Component assetPrefix Tests', () => {
} }
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -511,8 +511,7 @@ describe('Image Component basePath Tests', () => { ...@@ -511,8 +511,7 @@ describe('Image Component basePath Tests', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -1483,8 +1483,7 @@ describe('Image Component Tests', () => { ...@@ -1483,8 +1483,7 @@ describe('Image Component Tests', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -44,8 +44,7 @@ describe('Image Component Trailing Slash Tests', () => { ...@@ -44,8 +44,7 @@ describe('Image Component Trailing Slash Tests', () => {
} }
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -82,8 +82,7 @@ describe('Image Component Unicode Image URL', () => { ...@@ -82,8 +82,7 @@ describe('Image Component Unicode Image URL', () => {
}) })
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -109,8 +109,7 @@ describe('Unoptimized Image Tests', () => { ...@@ -109,8 +109,7 @@ describe('Unoptimized Image Tests', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -1517,8 +1517,7 @@ describe('Image Component Default Tests', () => { ...@@ -1517,8 +1517,7 @@ describe('Image Component Default Tests', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -34,8 +34,7 @@ describe('Image Component assetPrefix Tests', () => { ...@@ -34,8 +34,7 @@ describe('Image Component assetPrefix Tests', () => {
) )
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -206,8 +206,7 @@ describe('Image Component basePath Tests', () => { ...@@ -206,8 +206,7 @@ describe('Image Component basePath Tests', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -51,8 +51,7 @@ describe('Image Component basePath + trailingSlash Tests', () => { ...@@ -51,8 +51,7 @@ describe('Image Component basePath + trailingSlash Tests', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -1525,8 +1525,7 @@ describe('Image Component Default Tests', () => { ...@@ -1525,8 +1525,7 @@ describe('Image Component Default Tests', () => {
runTests('dev') runTests('dev')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -53,8 +53,7 @@ describe('Missing Import Image Tests', () => { ...@@ -53,8 +53,7 @@ describe('Missing Import Image Tests', () => {
runTests({ isDev: true }) runTests({ isDev: true })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
stderr = '' stderr = ''
const result = await nextBuild(appDir, [], { stderr: true }) const result = await nextBuild(appDir, [], { stderr: true })
......
...@@ -55,8 +55,9 @@ describe('Image Loader Config', () => { ...@@ -55,8 +55,9 @@ describe('Image Loader Config', () => {
}) })
runTests('/') runTests('/')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)(
describe('server mode - component', () => { 'production mode - component',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -66,7 +67,8 @@ describe('Image Loader Config', () => { ...@@ -66,7 +67,8 @@ describe('Image Loader Config', () => {
killApp(app) killApp(app)
}) })
runTests('/') runTests('/')
}) }
)
describe('dev mode - getImgProps', () => { describe('dev mode - getImgProps', () => {
beforeAll(async () => { beforeAll(async () => {
appPort = await findPort() appPort = await findPort()
...@@ -77,8 +79,9 @@ describe('Image Loader Config', () => { ...@@ -77,8 +79,9 @@ describe('Image Loader Config', () => {
}) })
runTests('/get-img-props') runTests('/get-img-props')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)(
describe('server mode - getImgProps', () => { 'production mode - getImgProps',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -88,5 +91,6 @@ describe('Image Loader Config', () => { ...@@ -88,5 +91,6 @@ describe('Image Loader Config', () => {
killApp(app) killApp(app)
}) })
runTests('/get-img-props') runTests('/get-img-props')
}) }
)
}) })
...@@ -57,8 +57,7 @@ describe('Image Loader Config with Edge Runtime', () => { ...@@ -57,8 +57,7 @@ describe('Image Loader Config with Edge Runtime', () => {
}) })
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -48,8 +48,9 @@ describe('Image Loader Config', () => { ...@@ -48,8 +48,9 @@ describe('Image Loader Config', () => {
}) })
runTests('/') runTests('/')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)(
describe('server mode - component', () => { 'production mode - component',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -59,7 +60,8 @@ describe('Image Loader Config', () => { ...@@ -59,7 +60,8 @@ describe('Image Loader Config', () => {
killApp(app) killApp(app)
}) })
runTests('/') runTests('/')
}) }
)
describe('dev mode - getImgProps', () => { describe('dev mode - getImgProps', () => {
beforeAll(async () => { beforeAll(async () => {
appPort = await findPort() appPort = await findPort()
...@@ -70,8 +72,9 @@ describe('Image Loader Config', () => { ...@@ -70,8 +72,9 @@ describe('Image Loader Config', () => {
}) })
runTests('/get-img-props') runTests('/get-img-props')
}) })
;(process.env.TURBOPACK ? describe.skip : describe)(
describe('server mode - getImgProps', () => { 'production mode - getImgProps',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -81,5 +84,6 @@ describe('Image Loader Config', () => { ...@@ -81,5 +84,6 @@ describe('Image Loader Config', () => {
killApp(app) killApp(app)
}) })
runTests('/get-img-props') runTests('/get-img-props')
}) }
)
}) })
...@@ -44,8 +44,7 @@ describe('Image Component Trailing Slash Tests', () => { ...@@ -44,8 +44,7 @@ describe('Image Component Trailing Slash Tests', () => {
} }
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -82,8 +82,7 @@ describe('Image Component Unicode Image URL', () => { ...@@ -82,8 +82,7 @@ describe('Image Component Unicode Image URL', () => {
}) })
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -103,7 +103,9 @@ describe('Unoptimized Image Tests', () => { ...@@ -103,7 +103,9 @@ describe('Unoptimized Image Tests', () => {
runTests('/') runTests('/')
}) })
describe('server mode - component', () => { ;(process.env.TURBOPACK ? describe.skip : describe)(
'production mode - component',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -114,7 +116,8 @@ describe('Unoptimized Image Tests', () => { ...@@ -114,7 +116,8 @@ describe('Unoptimized Image Tests', () => {
}) })
runTests('/') runTests('/')
}) }
)
describe('dev mode - getImgProps', () => { describe('dev mode - getImgProps', () => {
beforeAll(async () => { beforeAll(async () => {
appPort = await findPort() appPort = await findPort()
...@@ -126,7 +129,9 @@ describe('Unoptimized Image Tests', () => { ...@@ -126,7 +129,9 @@ describe('Unoptimized Image Tests', () => {
runTests('/get-img-props') runTests('/get-img-props')
}) })
describe('server mode - getImgProps', () => { ;(process.env.TURBOPACK ? describe.skip : describe)(
'production mode - getImgProps',
() => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
...@@ -137,5 +142,6 @@ describe('Unoptimized Image Tests', () => { ...@@ -137,5 +142,6 @@ describe('Unoptimized Image Tests', () => {
}) })
runTests('/get-img-props') runTests('/get-img-props')
}) }
)
}) })
...@@ -38,8 +38,7 @@ describe('Optional chaining and nullish coalescing support', () => { ...@@ -38,8 +38,7 @@ describe('Optional chaining and nullish coalescing support', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -35,8 +35,7 @@ describe('PORT environment variable', () => { ...@@ -35,8 +35,7 @@ describe('PORT environment variable', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -380,8 +380,7 @@ describe('Prerender Preview Mode', () => { ...@@ -380,8 +380,7 @@ describe('Prerender Preview Mode', () => {
await killApp(app) await killApp(app)
}) })
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('Server Mode', () => {
runTests() runTests()
}) })
}) })
...@@ -276,8 +276,7 @@ describe('Preview mode with fallback pages', () => { ...@@ -276,8 +276,7 @@ describe('Preview mode with fallback pages', () => {
runTests(true) runTests(true)
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await fs.remove(join(appDir, '.next')) await fs.remove(join(appDir, '.next'))
await nextBuild(appDir) await nextBuild(appDir)
......
...@@ -70,7 +70,7 @@ const runTests = () => { ...@@ -70,7 +70,7 @@ const runTests = () => {
} }
describe('Revalidate asPath Normalizing', () => { describe('Revalidate asPath Normalizing', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
beforeAll(async () => { beforeAll(async () => {
await fs.remove(join(appDir, '.next')) await fs.remove(join(appDir, '.next'))
appPort = await findPort() appPort = await findPort()
......
...@@ -73,8 +73,7 @@ describe('Scroll Restoration Support', () => { ...@@ -73,8 +73,7 @@ describe('Scroll Restoration Support', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -81,8 +81,7 @@ describe('Scroll Restoration Support', () => { ...@@ -81,8 +81,7 @@ describe('Scroll Restoration Support', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
...@@ -24,7 +24,7 @@ const runTests = () => { ...@@ -24,7 +24,7 @@ const runTests = () => {
} }
describe('Custom 404 Page for static site generation with dynamic routes', () => { describe('Custom 404 Page for static site generation with dynamic routes', () => {
describe('server mode', () => { ;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
afterAll(() => killApp(app)) afterAll(() => killApp(app))
it('should build successfully', async () => { it('should build successfully', async () => {
......
...@@ -21,7 +21,9 @@ import webdriver from 'next-webdriver' ...@@ -21,7 +21,9 @@ import webdriver from 'next-webdriver'
jest.setTimeout(1000 * 60 * 2) jest.setTimeout(1000 * 60 * 2)
const appDir = join(__dirname, '../') const appDir = join(__dirname, '../')
describe(`Handle url imports`, () => { ;(process.env.TURBOPACK ? describe.skip : describe)(
`Handle url imports`,
() => {
let staticServer let staticServer
let staticServerPort let staticServerPort
beforeAll(async () => { beforeAll(async () => {
...@@ -118,4 +120,5 @@ describe(`Handle url imports`, () => { ...@@ -118,4 +120,5 @@ describe(`Handle url imports`, () => {
}) })
}) })
} }
}) }
)
...@@ -42,8 +42,7 @@ describe('Web Workers with webpack 5', () => { ...@@ -42,8 +42,7 @@ describe('Web Workers with webpack 5', () => {
runTests() runTests()
}) })
;(process.env.TURBOPACK ? describe.skip : describe)('production mode', () => {
describe('server mode', () => {
beforeAll(async () => { beforeAll(async () => {
await nextBuild(appDir) await nextBuild(appDir)
appPort = await findPort() appPort = await findPort()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment