(optEnv = {}, opts?: any)
| 18 | const appDir = join(__dirname, '../') |
| 19 | |
| 20 | const startServer = async (optEnv = {}, opts?: any) => { |
| 21 | const scriptPath = join(appDir, 'server.js') |
| 22 | appPort = await getPort() |
| 23 | const env = Object.assign({ ...process.env }, { PORT: `${appPort}` }, optEnv) |
| 24 | |
| 25 | app = await initNextServerScript(scriptPath, /ready on/i, env) |
| 26 | } |
| 27 | |
| 28 | // Tests are skipped in Turbopack because they are not relevant to Turbopack. |
| 29 | ;(process.env.IS_TURBOPACK_TEST ? describe.skip : describe)( |
no test coverage detected