jasmine / IdeaJasmine

12 stars 5 forks source link

IdeaJasmine does not see node.js interpreter ran in WSL2 #21

Open Tymoteuszauke opened 2 years ago

Tymoteuszauke commented 2 years ago

Having below configuration: image When I'm trying to run All Tests suite I have following message: image

I installed node.js on windows, and I switched interpreter in configuration to it but the result after run was "Not test were found".

sgravrock commented 2 years ago

I haven't worked with WSL2, but based on a quick web search it looks like there are a number of steps you have to go through to get it working with IntellJ, and a few pitfalls. I wonder if your problem is specific to the IdeaJasmine plugin or if IntelliJ just isn't working right with WSL2 at all.

Are you able to get a Node.js run configuration working in your project, or does it give you the same error? What happens if you try to run your tests using a Mocha or Jest configuration? (You'd most likely have to temporarily install Mocha or Jest to do this.) Do you get the same error, or does Mocha/Jest start up and complain about problems with your specs?

Tymoteuszauke commented 2 years ago

Frankly I haven't tested any other testing frameworks with that project, for now all I can say that's I can successfully run ts node.js application via intellij (with project and node.js v16.16.0 installed with nvm located on WSL). I will try to test it with Mocha or Jest like you proposed and get back with the results.

sgravrock commented 2 years ago

No need. If you're able to run a Node configuration, I think that's enough to show that your basic setup is working. I'll see if I can reproduce this when I get a chance.

sgravrock commented 2 years ago

I've been unable to get Node working inside WSL2 on the only Windows machine I have access to, so I won't be able to investigate this. But if you (or anyone else) want to put together a PR that fixes the problem, I'd be happy to review it.