JS tests bug with symlink
I am working on a maven project, with a front module (javascript) and a back module (java). The problem : I fail to execute a javascript test with right click > run.
On the template run config, if the radio button "Test file" is selected and the "Test file" field is starting with "~/" the test do not start (file not found).
But if I change with an absolute path for this "Test file" field, it is working !
Sadly, when we right click on a JS test, the path with "~" is generated so the test is not working (No tests found).
Other info: if I select "all tests" in the template, it is working. And then, in the test execution, if I select a single test and run it from here, it is working because have the absolute path. Also, in this case, when I double click on any test it opens a new tab of the selected file even if already opened: the new tab is using an absolute path and Intellij does even not recognize it as a file who belongs to the project.
Working because full path:
Not working because ~ :
I would like to run js test, method or file, just with a right click, is that possible ?
My "Prog" directory is a symbolic link, this could be the root cause :
Prog -> /mnt/9ee7313c-bc94-4ea6-8549-3ae039318d4b/Prog
Please sign in to leave a comment.
Please try opening a project from its actual location, not from symlink - what is the result?
Result without symlink: everything works fine. The bug only affects JS tests, not Java.
Submitted to developers as https://youtrack.jetbrains.com/issue/WEB-43290, please follow it for updates
I am having this same issue in IntelliJ IDEA 2021.3 (Ultimate Edition) Build #IU-213.5744.223, built on November 27, 2021 with Jest test results. When clicking on the test in the run window, it opens the file from the symlinked path instead of the project path.
Your issue is different; please follow https://youtrack.jetbrains.com/issue/WEB-54139 for updates
Hi, the issue https://youtrack.jetbrains.com/issue/WEB-43290
although marked as fixed, still doesn't work (WebStorm 2021.3.1)
My whole project directory is open from the mapped drive (n:\project\....) but the physical path is c:\work\project\.....).
When attempting to run a single test, the message is still the same:
No tests found, exiting with code 1
Run with `--passWithNoTests` to exit with code 0
No files found in C:\Work\project\.
Make sure Jest's configuration does not exclude this directory.
To set up Jest, make sure a package.json file exists.
Jest Documentation:
Files: "N:\project\test\activity\create.test.js"
I.e. in the test configuration I exactly passed the file and the test I want to run (it is mentioned on the last line) but the IDE attempts to run it from the physical path which it cannot manage.
(when opening the project from the physical location, everything works correctly)
Is
N:
a virtual drive created withsubst <drive:> path\to\folder
? This is https://youtrack.jetbrains.com/issue/WEB-53137 then, please follow it for updatesYes, that's it. Thank you