(path)
| 21 | const appDir = join(__dirname, '../app') |
| 22 | |
| 23 | const getEnvFromHtml = async (path) => { |
| 24 | const html = await renderViaHTTP(appPort, path) |
| 25 | const $ = cheerio.load(html) |
| 26 | const env = JSON.parse($('p').text()) |
| 27 | env.nextConfigEnv = $('#nextConfigEnv').text() |
| 28 | env.nextConfigPublicEnv = $('#nextConfigPublicEnv').text() |
| 29 | env.nextConfigNewPublicEnv = $('#nextConfigNewPublicEnv').text() |
| 30 | return env |
| 31 | } |
| 32 | |
| 33 | const runTests = (mode = 'dev', didReload = false) => { |
| 34 | const isDevOnly = mode === 'dev' |