feat(asyn/await): parallelize commands #852
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request focuses on enhancing the end-to-end (e2e) tests for the CLI, improving the migration process, and refactoring the code for better readability and maintainability. The most important changes include adding new test cases, modifying existing snapshots, and refactoring the
apply
command to improve error handling and logging.Enhancements to e2e Tests:
afterAll
hook to clean up test migration directories after tests run ine2e/cli.test.ts
.e2e/cli.test.ts
ande2e/__snapshots__/cli.test.ts.snap
. [1] [2]Migration Process Improvements:
apply
command to modularize the code, improve error handling, and enhance logging. This includes creating helper functions likeresetRepo
,resetBranch
, andhandleApplySteps
insrc/commands/apply.ts
.Codebase Refactoring:
checkout
command tests to improve readability and maintainability by usingbeforeEach
for setup and adding new test cases for different scenarios insrc/commands/checkout.test.ts
. [1] [2] [3]Minor Changes:
examples/eslintrc-yml/shepherd.yml
to reflect a new test migration.src/commands/apply.test.ts
to focus on other improvements.Screenshots
e2e Tests
Manual Test
Checkout
Apply