Bug: @snowpack/web-test-runner coverage #2157
-
If my source code is in a project subdirectory (e.g. I can reproduce with a stock vanilla snowpack/web-test-runner example project if I simply mount my code from a And for reference, the istanbul coverage report generates files that contain the following error.... it looks like its trying to locate source files by comping the CWD with the web import path, but without the (mounted)
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 12 replies
-
We run the istanbul coverage reporter as a separate process after testing, this looks up the files on the file system by default. We need to see if we can make it query the files back from the dev server again. Tracking in modernweb-dev/web#1212 |
Beta Was this translation helpful? Give feedback.
-
This is now fixed with Note that you probably want to ignore the generated snowpack files from coverage:
|
Beta Was this translation helpful? Give feedback.
-
Oops, I spoke too soon. Unfortunately this is still broken. I've upgraded the repro project to use the latest Note, paths are missing the |
Beta Was this translation helpful? Give feedback.
-
I'm seeing this issue as well, using Our snowpack mount config looks like this:
And I'm seeing an error like this:
The |
Beta Was this translation helpful? Give feedback.
This is now fixed with
@web/test-runner
v0.12.6 or later. If you use other test runner packages, you might need to update those as well.Note that you probably want to ignore the generated snowpack files from coverage: