Input in console during testing with Mocha

Hello there! In my tests, I need user input. But the console doesn't allow me to do it :( I found a solution for IDEA, but it doesn't work in PHPStorm. What can I do with that? Thank you!

评论操作 固定链接

Please try enabling nodejs.test.run.configurations.use.terminal.console registry key should help (Help | Find Action | Registry) - does it help?

If it doesn't, please share a sample code we can use to reproduce the issue. Also, what OS are you on?

1
评论操作 固定链接

Elena, you're my savior! You're the most wonderful girl in the world! You can't even imagine how much physical and moral pain you prevented! Thank you very much! I am absolutely happy now thanks to you.

0

请先登录再写评论。