cloud-sdk-js icon indicating copy to clipboard operation
cloud-sdk-js copied to clipboard

refactor: improve generator-cli test performance

Open shojisoma opened this issue 3 years ago • 0 comments

Closes https://github.com/SAP/cloud-sdk-backlog/issues/282

Changes

  1. use mock-fs to improve the performance when the test actually writes files to the repo.
  2. test generte() directly to use mock-fs instead of executing the cli with execa because execa and mock-fs are running on different processes hence these cannot use on the same process.
  3. move createOptionsFromConfig() into generator-options.ts in order to test the function directly.

shojisoma avatar Aug 11 '22 11:08 shojisoma