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

Function setupProxy

cypress/plugins/proxy.js:62–77  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

60let serverProcess;
61
62async function setupProxy(options) {
63 const postfix = Math.random()
64 .toString(32)
65 .slice(2);
66
67 const testRepoName = `proxy-test-repo-${Date.now()}-${postfix}`;
68 const tempDir = path.join('.temp', testRepoName);
69
70 const { mode, ...rest } = options;
71
72 await updateConfig(config => {
73 merge(config, rest);
74 });
75
76 return { tempDir, mode };
77}
78
79async function teardownProxy(taskData) {
80 if (serverProcess) {

Callers 1

setupBackendFunction · 0.85

Calls 3

mergeFunction · 0.85
updateConfigFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected