Jest plugin breakpoints doesn't work in Webstorm
See original GitHub issueHey,
I’m using the config that @RIP21 proposed in this issue: https://github.com/aelbore/esbuild-jest/issues/24 which is:
module.exports = {
testEnvironment: 'node',
transform: {
'^.+\\.[t|j]s?$': require.resolve('@sucrase/jest-plugin'),
},
};
(jest.config.js)
And this is simply ignoring all of the breakpoints. I’m using Jest with default configuration created by Webstorm Jest runner.
Versions:
@sucrase/jest-plugin: ^2.1.1
webstorm: 2021.2.1
jest: ^27.3.1 also ^26.6.3 doesn't work
node: 14.17.6
cpu architecture: Apple M1 arm
Also been trying to run it using Visual Studio and this Jest runner: https://marketplace.visualstudio.com/items?itemName=vespa-dev-works.jestRunIt which didn’t worked either.
You can check the minimal example, that I’ve prepared: https://github.com/PatrykMilewski/sucrase-test It doesn’t work with Webstorm, but works a little bit with Visual Studio Code, however breakpoints are shown on the transpiled instead of original code.
I believe I’m missing some sort of Node configuration, because a few months ago it was working, before I’ve moved to a new computer.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Hey @PatrykMilewski , I just published
@sucrase/jest-plugin@2.2.0
, which fixes the issue from my testing. Let me know if you run into any trouble!Wow @alangpierce it simply works now! You are the best!
Do you accept donations somehow? I would like to send you small donation, as this fix simply saved me quite a lot of work and made my dev stacks a lot better!