(campaignPath)
| 22 | } |
| 23 | |
| 24 | function 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 | |
| 34 | withTempProject((projectRoot) => { |
| 35 | write(path.join(projectRoot, 'package.json'), JSON.stringify({ |
no outgoing calls
no test coverage detected