-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ability to filter out the stack trace #1170
Comments
currently I use this dirty hack (reporers/base.js): // filter the stack trace
var lines = [];
stack.split(/\n/).forEach(function(line){
if (!line.match("/node_modules/")) {
lines.push(line);
}
});
stack = lines.join('\n');
// indent stack trace without msg
stack = stack.slice(index ? index + 1 : index)
.replace(/^/gm, ' '); |
@visionmedia do you have any thoughts about this feature request? If it's worth to have I could implement it. |
i don't think it's necessary. you could make your own filterable reporter, no need to hack the base reporter. |
Hey guys, I've managed to implement this exactly, and published it as a new package. I found |
Is there possible to implement remove |
#1766 We originally had it enabled by default |
Something simillar we could do in
jasmine-node
https://github.com/mhevery/jasmine-node/blob/dfa2e18517d8fbc5357489de643376eb5e303dfe/lib/jasmine-node/index.js#L128It could be extremely useful for debugging failed scenarios written along with https://github.com/angular/protractor or other library. Currently stack traces contain too much details and it's hard to figure out where we should start debugging the failed scenario. For example https://gist.github.com/lucassus/de99d54cfb98c6ae60eb
The text was updated successfully, but these errors were encountered: