mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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.
18 lines
472 B
TypeScript
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')
|
|
})
|
|
})
|