MCPcopy Create free account
hub / github.com/SethGammon/Citadel / completeBuildAndVerify

Function completeBuildAndVerify

scripts/test-operator-journey.js:24–32  ·  view source on GitHub ↗
(campaignPath)

Source from the content-addressed store, hash-verified

22}
23
24function completeBuildAndVerify(campaignPath) {
25 let campaign = fs.readFileSync(campaignPath, 'utf8');
26 campaign = campaign
27 .replace('| 2 | pending | build | Implement requested change | Required files are changed and implementation diff is available |', '| 2 | complete | build | Implement requested change | Required files are changed and implementation diff is available |')
28 .replace('| 3 | pending | verify | Run verification | npm run test passes |', '| 3 | complete | verify | Run verification | npm run test passes |')
29 .replace('| phase:2 | implementation-diff | file_diff | yes | git diff --stat | pending | 2 | implement requested change |', '| phase:2 | implementation-diff | file_diff | yes | git diff --stat | resolved | 2 | implement requested change |')
30 .replace('| phase:3 | verification-command | test_result | yes | npm run test | pending | 2 | fix verification failures |', '| phase:3 | verification-command | test_result | yes | npm run test | pass | 2 | fix verification failures |');
31 fs.writeFileSync(campaignPath, campaign, 'utf8');
32}
33
34withTempProject((projectRoot) => {
35 write(path.join(projectRoot, 'package.json'), JSON.stringify({

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected