-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add tests for qse init
command with docker-compose
flag.
#98
Comments
@gnypit, what's up? |
@alguiguilo098 |
@Ashrockzzz2003 I have problem run qse init -t templete --docker-compose you can help me resolve it problem ? |
When I run what you've commented Can you give me an exact way to reproduce the error. Cos I'm not getting this one. npm ci
npm link
cd qse-test # assuming you have a qse-test dir
npm link qse
# Then the command |
@Ashrockzzz2003 i replace templete for basic i run qse init -t basic --dockercompose |
It works fine for me. Try doing what I said earlier. It should work. Tested in Windows, Linux and MacOS. Follow the steps in documentation to properly setup dev env. Probably something went wrong there. |
@Ashrockzzz2003 i tested Linux, which node version ? |
The Node version you're currently using is 17.9.1, which could cause an issue. Please update the Node version to 22.13.1 and try the command again. |
@Ashrockzzz2003 what, up ? I'm having trouble running the command above because the process is waiting for a response to an event. Is there another way to execute the command through a function call with the event responses already established? And would it be too bad not to use exec |
You can simulate input events with @inquirer/testing. WorkaroundIf it's too much then, a new flag can be added to get the input value of cache through a flag. If flag is passed, get and use the value, else treat that as false. ( This way testing becomes easier and similar to other cases. |
@Ashrockzzz2003 thank you very much |
@alguiguilo098 |
@Ashrockzzz2003 I couldn't use https://www.npmjs.com/package/@inquirer/testing. I also couldn't implement the docker-compose-cache flag. I'm having trouble sending input to the --docker-compose command. |
Hello, @Ashrockzzz2003. I'm a friend of @alguiguilo098, and they told me about this issue. I'd like to give it a try, if possible. |
Sure |
Hello, thanks for this chance @Ashrockzzz2003. I've opened a PR: #106. |
docker-compose
flag is enabled.Note
It should be covering all the edge cases.
Example: For some templates, additional
Important Note
will be logged. These should be tested as well.docker-compose.yml
file creation.Dockerfile
creation.The text was updated successfully, but these errors were encountered: