MCPcopy Create free account
hub / github.com/decaporg/decap-cms / updateConfig

Function updateConfig

cypress/utils/config.js:19–25  ·  view source on GitHub ↗
(configModifier)

Source from the content-addressed store, hash-verified

17}
18
19async 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
27async function switchVersion(version) {
28 const htmlFile = path.join(devTestDirectory, 'index.html');

Callers

nothing calls this directly

Calls 1

readFileMethod · 0.45

Tested by

no test coverage detected