Files
next.js/test/production/app-dir/use-node-streams-env-precedence/use-node-streams-env-precedence.test.ts
Hendrik LiebauandGitHub 432b3f96bb [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.
2026-03-20 13:15:40 -07:00

18 lines
472 B
TypeScript

import { nextTestSetup } from 'e2e-utils'
describe('use-node-streams env precedence', () => {
const { next } = nextTestSetup({
files: __dirname,
skipStart: true,
env: {
__NEXT_USE_NODE_STREAMS: 'true',
},
})
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')
})
})