bcoe / c8

output coverage reports using Node.js' built in coverage
ISC License
2k stars 91 forks source link

unhelpful error message #317

Open jimmywarting opened 3 years ago

jimmywarting commented 3 years ago

c8 --reporter json --reporter text ava "--colors" Uncaught exception in test.js SyntaxError: Unexpected token '.'


Error log: https://github.com/node-fetch/fetch-blob/pull/103/checks?check_run_id=3037830205 Version: output of node -v: v15 Platform: ubuntu


I'm not sure if it's c8 or something else but the error message is not that helpful, it dose not say where in the file there is a error... only that it exited with error code 1. annoying to debug...

bcoe commented 2 years ago

@jimmywarting would you be able to provide a minimal reproduction of this behavior?

c8 just wraps a command and runs it as a subprocess, so it's potentially an error that's bubbling from elsewhere.