Debugging with @stencil/vitest
#6752
Replies: 3 comments 3 replies
-
|
Source maps seem to be omitted by the plugin, I filed an issue for that: stenciljs/vitest#74 |
Beta Was this translation helpful? Give feedback.
-
|
Hey @angelo-v ! |
Beta Was this translation helpful? Give feedback.
-
|
oh I see what you mean :) Regarding the setup - as it mentions in the docs - you'll need to adjust it depending for what your build. e.g. default |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am having a tough time getting debugging during tests to work. I wonder whether it should work out of the box and I am doing something wrong? I tried with vscode and Intellij. Breakpoints stop at test code but not in the component.
I thought it might be related to the
distoutput being used so I tried with explicitsourceMap: truebut this is not helping. I also tried thestencilVitestPlugin. I am trying all this on a freshly initialized stencil project with themy-component.tsxso it should not be very special... But I also wondered that the freshly initialized stencil projects differs in config from what is explained in the docs, so I am still confused what the recommended way to setup tests is and with what configuration I can debugging expect to work or not.Beta Was this translation helpful? Give feedback.
All reactions