The source is in the src/ folder and the transpiled sources are in the dist/ folder.
I use mocha for my testing framework.
When I'm in the editor for src/someTest.js, the gutter shows the green double arrow which I can use to run/debug the test.
However, it doesn't work because it runs the tests from the src/ folder and not from the dist/ folder so it can't find/load other generated modules.
Is there some option to set Webstorm to run the transpiled sources (some way to specify the mapping) when I click on the gutter icon?
In the mean time I have some workarounds:
1) Navigate to dist/someTest.js to see the transpiled version and run/debug the test from there. Works but breaks the flow. Side question: is there some way to quickly navigate between the original source and the generated source (like jump to related file feature)
2) Create a dedicated launch configuration that specifies /dist. Works but it is troublesome to create one for each test/test method.
Any help would be appreciated.