Open jrson83 opened 1 year ago
We should add vitest cases for testing the cli stdout/stdin. For that purpose each cli command must be it's own module. I think this is also good practice, cause it will have 1:1 the same file structure like the core/ folder.
vitest
stdout
stdin
command
1:1
core/
sparkee/ └── src/ ├── commands/ │ ├── index.ts # exports all commands │ ├── info.ts │ ├── init-cliff.ts │ ├── init.ts │ ├── log.ts │ ├── publish.ts │ └── run.ts ├── common/ ├── core/ ├── types/ ├── utils/ └── index.ts
@jrson83 That is a good idea! I will refactor code base your advise on a new branch.
@Geocld oh I have it done already, also the tests. Give me some more time then I will create a PR.
We should add
vitest
cases for testing the clistdout
/stdin
. For that purpose each clicommand
must be it's own module. I think this is also good practice, cause it will have1:1
the same file structure like thecore/
folder.