Debugging Jest unit tests hangs

I have experienced this issue since upgrading from 2017.3 to the latest 2018.1.5.  Running a jest test seems to work as expected, but when I switch to debug the same test, it hangs.  I have simplified this down to a project with a package.json and a single test file.  See screenshots below.  I click the green arrow on line 3, then select Debug 'testing', and it hangs in the state pictured below.

Here is my package.json

And here are the configuration settings for the test process

 

1 comment

I believe I have figured out the source of the issue, but it is appears to be a part of a larger issue... 

I had previously enabled the Registry flag

  js.debugger.break.on.first.statement.with.regexp 

because it is the recommended fix for an issue with React-native debugging:

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000046264/comments/360000124730.

 

If I uncheck this flag, Jest will debug properly, but then my react-native debugging will still be broken.  Please advise.  Thank you!

3

Please sign in to leave a comment.