Breakpoints in test files not hit in React TypeScript project when using WSL 1
I run IntelliJ 2019.3.3 with WSL 1 on my Windows 10 machine, and I noticed that the breakpoints I place in code that's being unit tested in Create React App (with Typescript) will not be hit and the test will end like they're not there.
I tried this in a current project I'm working on, but I can also reproduce it when I create a new React project in IntelliJ (with File > New > Project > React App (I checked "Create TypeScript project". If I place a breakpoint either in App.tsx or App.test.tsx, they will not be hit if I debug the test when the node binary comes from WSL. It does work when I use the Node binary on Windows 10.
I specified the Node binary from WSL for several other settings in IntelliJ, and aside from minor issues haven't had a problem with it thus far until I tried to debug my unit tests.
Please sign in to leave a comment.
Known issue, please vote for https://youtrack.jetbrains.com/issue/WEB-33710 to be notified on any progress with it
Thanks Elena, I've voted for the issue! I'll keep an eye on it.