cloud-sdk-js
cloud-sdk-js copied to clipboard
refactor: improve generator-cli test performance
Closes https://github.com/SAP/cloud-sdk-backlog/issues/282
Changes
- use
mock-fsto improve the performance when the test actually writes files to the repo. - test
generte()directly to usemock-fsinstead of executing the cli withexecabecauseexecaandmock-fsare running on different processes hence these cannot use on the same process. - move
createOptionsFromConfig()intogenerator-options.tsin order to test the function directly.