Open kwojcik opened 1 month ago
Also getting this problem in node, since at least version 1.2.2, if that helps with debugging.
Has this ever worked correctly? I just tested 2.0.2
, 1.2.2
, 1.0.0
and 0.33.0
. The error is shown incorrectly on all those versions.
Describe the bug
When a test imports a react component which throw an error, the stack trace will be incorrect with istanbul coverage. Traces are wrong (but different) in both browser and jsdom modes. The trace is correct without
--coverage
.When the file looks like
Reproduction
https://github.com/kwojcik/vitestsourcemapbug/pull/new/reactErrorStackTrace
System Info
Used Package Manager
npm
Validations