Migrate app-dir-export test to be isolated (#86534)
Flakey: ```❌ test/integration/app-dir-export/test/start.test.ts output: HEADLESS=true NEXT_TELEMETRY_DISABLED=1 CI= NEXT_TEST_CI=true IS_RETRY=undefined TRACE_PLAYWRIGHT=true CIRCLECI= GITHUB_ACTIONS= CONTINUOUS_INTEGRATION= RUN_ID= BUILD_NUMBER= JEST_JUNIT_OUTPUT_NAME=test_integration_app-dir-export_test_start.test.ts JEST_SUITE_NAME=default:12/13:integration:test/integration/app-dir-export/test/start.test.ts /root/actions-runner/_work/next.js/next.js/node_modules/.bin/jest '--ci' '--runInBand' '--forceExit' '--verbose' '--json' '--outputFile=test/integration/app-dir-export/test/start.test.ts.results.json' 'test/integration/app-dir-export/test/start.test.ts' [08:48:33.323Z] Running command "next build /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export" ▲ Next.js 16.1.0-canary.1 - Local: http://[::1]:36371 - Network: http://[::]:36371 ✓ Starting... Error: "next start" does not work with "output: export" configuration. Use "npx serve@latest out" instead. at <unknown> (dist/server/next.js:230:53) at async NextServer.prepare (dist/server/next.js:177:24) at async initializeImpl (dist/server/lib/render-server.js:132:5) at async initialize (dist/server/lib/router-server.js:538:22) at async Server.<anonymous> (dist/server/lib/start-server.js:381:36) [08:49:12.558Z] Running command "next build /root/actions-runner/_work/next.js/next.js/test/integration/app-dir-export" FAIL webpack test/integration/app-dir-export/test/start.test.ts (100.119 s) app dir - with output export (next start) production mode ✓ should error during next start with output export (39235 ms) ✕ should warn during next start with output standalone (60029 ms) ● app dir - with output export (next start) › production mode › should warn during next start with output standalone thrown: "Exceeded timeout of 60000 ms for a test. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." 46 | 47 | // TODO: Move this test to test/production to run in isolation. > 48 | ;(process.env.TURBOPACK_BUILD ? it.skip : it)( | ^ 49 | 'should warn during next start with output standalone', 50 | async () => { 51 | nextConfig.replace(`output: 'export'`, `output: 'standalone'`) at integration/app-dir-export/test/start.test.ts:48:50 at integration/app-dir-export/test/start.test.ts:21:56 at Object.describe (integration/app-dir-export/test/start.test.ts:20:1) ```
Showing
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
This diff is collapsed.
Please
register
or
sign in
to comment