Unverified Commit 432b3f96 authored by Hendrik Liebau's avatar Hendrik Liebau Committed by GitHub

[test] Unflake `use-node-streams-env-precedence` test (#91733)

CI is slow sometimes
([x-ref](https://github.com/vercel/next.js/actions/runs/23353631446/job/67939293839)),
so we're removing the low custom test timeout to allow more time to
build the test fixture.

We're also moving the test from `test/e2e` to `test/production` since
it's only testing the build output, and doesn't need to be run in dev
and deploy modes.
parent 450ed6f8
import { nextTestSetup } from 'e2e-utils'
describe('use-node-streams env precedence', () => {
const { next, isNextDev, skipped } = nextTestSetup({
const { next } = nextTestSetup({
files: __dirname,
skipDeployment: true,
skipStart: true,
env: {
__NEXT_USE_NODE_STREAMS: 'true',
},
})
if (isNextDev || skipped) {
it.skip('only testable in start mode', () => {})
return
}
it('should respect explicit useNodeStreams=false even when env flag is true', async () => {
const { exitCode, cliOutput } = await next.build()
expect(exitCode).toBe(0)
expect(cliOutput).toContain('useNodeStreams')
}, 30_000)
})
})
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