New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deno test --coverage
generates invalid JSON in certain conditions that breaks deno coverage
#12112
Comments
I ran it locally instead of CI:
|
Reproducible, great! looking into it 🙂 |
Thought this was unable to parse the raw coverage profiles but it's actually failing on Given the very long line it's safe to bet that this is from an inline source map and the source map itself is malformed. |
So, sources are being embedded in the source map when Turning off the sources in source maps might seem like a quick fix, but it starts to impact the debugger experience, so we should find a way to fix it. |
I'm running into the same issue: https://github.com/c4spar/deno-dzx/runs/4074133401?check_suite_focus=true#step:5:6 It works with deno Stacktrace
|
yes, i can confirm the issue was an emoji in one of my files and the emoji is also in the generated source maps. It works after removing the emoji. |
Thanks, then this is the same issue as #10936, I'm gonna close this issue. |
It seems that there is something going on. Take a look at https://github.com/oakserver/oak/pull/401/checks?check_run_id=3627766944#step:10:9 The emitted coverage is not readable by
deno coverage
.I'm not sure when it started, as the CI hasn't run for a while on oak.
cc/ @caspervonb
The text was updated successfully, but these errors were encountered: