Debug is disabled for Jest configuration
Hi. I am using IntelliJ Ultimate build 212.4746.92 on Windows 10 and trying to debug my Jest tests through the IDE with no success. I am not able to set break points at all. The debug button is disabled. My colleagues are using the same configuration on on the same project, they just imported the project and everything worked. I compared our configs and there is no difference. I have tried everything. Cleaning the cache. Opening as a new project. Deleting the .idea folder. Changing the configuration. This is my configuration. Running the tests is working with no problem.
I even do not have the debug option disabled when trying to start a specific test.
Please share any idea that you have. Thank you.
Please sign in to leave a comment.
Will it help if you indicate the path to jest package (instead of react-scripts) in the run configuration?
I pointed it to the jest folder under node_modules, but it is the same.
Please try starting the IDE with default settings (File > Manage IDE Settings > Restore Default Settings...) - does the issue persist? This action auto-creates a backup of your current settings, so they won't be lost
It works now after restoring to default settings. Thank you very much!
I fixed the same issue by enabling the "JavaScript debugger" plugin