Coverage failing because of trying to read map file #4754
Replies: 7 comments 7 replies
-
I deleted my |
Beta Was this translation helpful? Give feedback.
-
I am now trying Istanbul reporter, which yields a different error still: This time quite different, as if the Remix route file names are confusing it, not sure, though. |
Beta Was this translation helpful? Give feedback.
-
It turns out I had some
|
Beta Was this translation helpful? Give feedback.
-
Ok apparently |
Beta Was this translation helpful? Give feedback.
-
Is there any update regarding this issue? I'm also getting exactly the same issue after updating the Remix version 2, vitest coverage is failing. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue and fixed it by set "sourceMap": true in tsconfig.json |
Beta Was this translation helpful? Give feedback.
-
Also using Remix. I was able to find this by matching all instances of the build folder: export default defineConfig({
// ...
test: {
// ...
coverage: {
exclude: [
// ...
"**/build/**",
],
},
},
}); |
Beta Was this translation helpful? Give feedback.
-
I'm very confused by this Vitest with coverage behaviour. I am in a simple Remix app. I am just testing a trivial 1=1 code thing for now. Coverage continues to fail like so:
/build/
?Is there some magic going on given that remix is setup in the project?
Beta Was this translation helpful? Give feedback.
All reactions