Uh oh!
There was an error while loading. Please reload this page.
feat(server): add stdin option to API - #2186
Conversation
| ); | ||
| const childProcess = testBin(false, configPath, true); | ||
| setTimeout(() => { |
There was a problem hiding this comment.
plz use timer. await timer(500)
| childProcess.stdin.pause(); | ||
| }, 500); | ||
| setTimeout(() => { |
| ); | ||
| const childProcess = testBin('--stdin', configPath); | ||
| setTimeout(() => { |
Codecov Report
@@ Coverage Diff @@## next #2186 +/- ##
==========================================
+ Coverage 93.47% 96.05% +2.57%
==========================================
Files 33 34 +1 Lines 1242 1191 -51 Branches 365 346 -19 ==========================================
- Hits 1161 1144 -17 + Misses 72 46 -26 + Partials 9 1 -8
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@## next #2186 +/- ##
==========================================
+ Coverage 93.47% 96.05% +2.57%
==========================================
Files 33 34 +1 Lines 1242 1191 -51 Branches 365 346 -19 ==========================================
- Hits 1161 1144 -17 + Misses 72 46 -26 + Partials 9 1 -8
Continue to review full report at Codecov.
|
hiroppy
commented
Aug 10, 2019
Need to update documentation. |
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
* feat(server): add stdin for api * test(stdin): switch to async await tests for stdin * test(cli): use await timer
For Bugs and Features; did you add new tests?
Yes
Motivation / Use-Case
This makes stdin an option for both CLI and API, and helps in moving configuration changes out of the CLI for CLI refactor.
Same PR as #2106, but moved to
next. It was faster to do this than an ugly rebase.Breaking Changes
None,
stdinwill work the same as it did before on CLI.Additional Info