json-api-store icon indicating copy to clipboard operation
json-api-store copied to clipboard

Improve stack traces in browser tests

Open haydn opened this issue 9 years ago • 0 comments

Any errors throw when running tests in the browser are hard to track down because the stack traces reference the compiled JS:

at load (http://localhost:49799/bundle.js?43c325:14905:31)
at load (http://localhost:49799/bundle.js?43c325:15238:27)
at http://localhost:49799/bundle.js?43c325:13155:13
at bound (http://localhost:49799/bundle.js?43c325:12145:37)
at run (http://localhost:49799/bundle.js?43c325:11691:13)
at bound (http://localhost:49799/bundle.js?43c325:12145:37)
at next (http://localhost:49799/bundle.js?43c325:11955:18)
at run (http://localhost:49799/bundle.js?43c325:2446:19)
at drainQueue (http://localhost:49799/bundle.js?43c325:2417:41)

That stack trace should use the source map embedded by Browserify.

haydn avatar Sep 03 '15 00:09 haydn