Missing Tests: installExtensions()
installExtensions() in src/installer.js calls the real code CLI. We need to test its logic with a mock.
What to test
- All succeed:
installed === total, failed === 0
- All fail:
installed === 0, failed === total
- Mixed: partial counts are correct
onProgress is called once per extension
results length equals input length
Difficulty
Medium. Requires mocking/stubbing a Node.js function.
Missing Tests: installExtensions()
installExtensions()insrc/installer.jscalls the realcodeCLI. We need to test its logic with a mock.What to test
installed === total,failed === 0installed === 0,failed === totalonProgressis called once per extensionresultslength equals input lengthDifficulty
Medium. Requires mocking/stubbing a Node.js function.