test(integration): fix --turbo tests fixture setup (#55293)

### What?

Update few test fixture setup doesn't invoke --turbo based on the conditions.

Closes WEB-1543
This commit is contained in:
OJ Kwon
2023-09-18 17:46:07 +00:00
committed by GitHub
parent f393f55678
commit 1105501287
10 changed files with 45 additions and 18 deletions
@@ -1,13 +1,14 @@
import { createNextDescribe } from 'e2e-utils'
import https from 'https'
import { renderViaHTTP } from 'next-test-utils'
import { renderViaHTTP, shouldRunTurboDevTest } from 'next-test-utils'
createNextDescribe(
'experimental-https-server (provided certificate)',
{
files: __dirname,
startCommand:
'yarn next dev --experimental-https --experimental-https-key ./certificates/localhost-key.pem --experimental-https-cert ./certificates/localhost.pem',
startCommand: `yarn next ${
shouldRunTurboDevTest() ? 'dev --turbo' : 'dev'
} --experimental-https --experimental-https-key ./certificates/localhost-key.pem --experimental-https-cert ./certificates/localhost.pem`,
},
({ next }) => {
const agent = new https.Agent({