-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
write a basic unit test for the command line app #10
Comments
Hi, Waren. I would like to work on this, may I try this? |
hi sir,i would also like to try this. |
Hey @gitdevjin and @Abhinav-Bansal751 feel free to submit your PR. |
@warengonzaga Thanks! :) |
Let me know which one of you can take it @Abhinav-Bansal751 @gitdevjin? So I can assign this issue. |
@warengonzaga I'll take it |
Done! ✨ |
Hi Waren, I tried to install your tool using |
@gitdevjin Hey there. To install it locally, you must follow the following for your tests.
Since you are using a MacBook, it should work as expected because it uses Linux commands. I wouldn't recommend installing it using npm or yarn globally. |
Otherwise, you can use CodeSpaces and do the changes there. |
for those who are trying it in windows,and getting |
@Abhinav-Bansal751 might be a good addition to script in package.json file? Then add |
Yes ,I have added |
I think you replaced the code there; kindly take a look at my suggested changes. |
I fixed this already @Abhinav-Bansal751 the easiest way to fix this is to remove those dependencies and add it again so that we can get the latest version. 😊 Because of that, it breaks our automated way to publish the NPM package. |
@gitdevjin how's your setup? Are you able to make any progress here? Let us know, I'm always here to help. |
ohk,i didnt know about that earlier. |
Hi @warengonzaga. |
We can remove Ava or XO there, as long as we can test if the CLI works properly. |
I'm not familiar with Ava and XO. It came with Ink when I generated the project. According to Copilot, Ava is used for running tests while Xo is used to lint the React. You can choose any other linting or test suite that suits our purpose. @gitdevjin |
@gitdevjin what's the progress here? |
What about using this @gitdevjin? |
@warengonzaga I apologize for the delayed response; I was occupied with midterms. I appreciate your suggestion and will give it a try. If I encounter any issues, I’ll reach out for help. Thank you for your understanding! |
No worries, @gitdevjin, just checking if you're stuck. I'm here to help. |
@warengonzaga I tried working on the test configuration issue, but I couldn’t get it to work. I think it might be best to assign it to someone else. Sorry for the trouble. |
Summary:
There's a basic
test.js
file in the root directory; however, it is not the actual test for the current version of the command-line app. We need a tailored unit test for the command-line app.Goal:
Write a unit test specifically for the current version and feature of the command line app.
Let me know if you want to take this issue or have questions.
The text was updated successfully, but these errors were encountered: