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

Function copyBackendFiles

cypress/utils/config.js:8–17  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

6const backendsDirectory = path.join(devTestDirectory, 'backends');
7
8async function copyBackendFiles(backend) {
9 await Promise.all(
10 ['config.yml', 'index.html'].map(file => {
11 return fs.copyFile(
12 path.join(backendsDirectory, backend, file),
13 path.join(devTestDirectory, file),
14 );
15 }),
16 );
17}
18
19async function updateConfig(configModifier) {
20 const configFile = path.join(devTestDirectory, 'config.yml');

Callers 2

setupBackendFunction · 0.85
teardownBackendFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected