-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(cli): improve test coverage in cli api handling #1408
test(cli): improve test coverage in cli api handling #1408
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@spirulence is attempting to deploy a commit to the Codemod Team on Vercel. A member of the Team first needs to authorize it. |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some self-review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thanks! 🎉 Just one comment.
@mohab-sameh I got caught off-guard here by the fact that |
broke the above issue with linting out into it's own effort #1420 |
i let @amirabbas-gh to rebase and merge this, making sure his latest work is not lost. |
📚 Description
This PR improves the unit test coverage of the cli application. New tests for
apps/cli/src/api.ts
are included.Previous code coverage report (commit f3fc6be )
npx vitest --coverage
New coverage report
🔗 Linked Issue
Makes progress on #1407
🧪 Test Plan
Test only change. New tests attached. Axios and Octokit dependencies mocked where applicable.
Line 23 in api.ts appears to have an unreachable branch which could be addressed in a follow-on effort.
📄 Documentation to Update
No documentation identified.