(configModifier)
| 17 | } |
| 18 | |
| 19 | async function updateConfig(configModifier) { |
| 20 | const configFile = path.join(devTestDirectory, 'config.yml'); |
| 21 | const configContent = await fs.readFile(configFile, 'utf8'); |
| 22 | const config = parse(configContent); |
| 23 | await configModifier(config); |
| 24 | await fs.writeFile(configFile, stringify(config)); |
| 25 | } |
| 26 | |
| 27 | async function switchVersion(version) { |
| 28 | const htmlFile = path.join(devTestDirectory, 'index.html'); |