-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement Unit Tests for Validator-CLI Commands #31
Comments
Hello @kenny-io , |
@dev15Aditya go for it, and let us know if you need help with anything |
👋 @kenny-io Last question: |
@phy-chain I would recommend jest for the test as we are using it in other projects but its ultimately up to you as we are not currently enforcing particular one. For the best outcome, I would recommend running the cli against a locally running shardeum node, not the live testnet. If you haven't set one up before, this documentation is very helpful We don't yet have any endpoints that provides mock data (this could be a good issue/PR to come out of this one) |
Hey @phy-chain @dev15Aditya how's it going? wanted to check in on your progress here, share any updates so far or questions if you're stuck somewhere |
The validator-cli contains several important commands in the
src/node-commands.ts
file, but currently lacks comprehensive unit tests. Adding tests for these commands will significantly improve the reliability and maintainability of the CLI.Proposed Solution
Implement unit tests for all the commands in the
src/node-commands.ts file
, covering various scenarios and edge cases.Expected Outcome
After implementing your solution:
Getting Started
start
,stop
,status
,info
,stake
,unstake
,version
,update
,gui
,clean
Mentorship
If you need any help or have questions about implementing the tests, feel free to ask in the comments. You can also start a discussion here on GitHub, and our team will be happy to provide the necessary assistance.
The text was updated successfully, but these errors were encountered: