{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/1859","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/1859/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/1859/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/1859/events","html_url":"https://github.com/mochajs/mocha/issues/1859","id":104614025,"number":1859,"title":"Error stack filtering should be configurable","user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-03T03:26:34Z","updated_at":"2015-09-09T21:56:28Z","closed_at":null,"body":"While I think excluding lines with `node_modules` substring from error stacks is reasonable, excluding [stack lines with `components` substring](https://github.com/mochajs/mocha/blob/4f0b32e0cef5d999f7f9594e3dccef89f023d65f/lib/utils.js#L709) seems very questionable. We have hit [the issue](https://github.com/wallabyjs/atom-wallaby/issues/6) in wallaby.js and I'm sure many people may have missing stack lines for their `components` folders and subfolders in their specs and source folders.\r\n\r\nSetting `fullTrace` somewhat helps, but it starts reporting `node_modules` stack lines. \r\n\r\nWhat do you think about having a setting to set an array of strings (or a function) to be used for filtering error stacks?"},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/139057145","html_url":"https://github.com/mochajs/mocha/issues/1859#issuecomment-139057145","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/1859","id":139057145,"user":{"login":"aaronjensen","id":8588,"avatar_url":"https://avatars.githubusercontent.com/u/8588?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronjensen","html_url":"https://github.com/aaronjensen","followers_url":"https://api.github.com/users/aaronjensen/followers","following_url":"https://api.github.com/users/aaronjensen/following{/other_user}","gists_url":"https://api.github.com/users/aaronjensen/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjensen/subscriptions","organizations_url":"https://api.github.com/users/aaronjensen/orgs","repos_url":"https://api.github.com/users/aaronjensen/repos","events_url":"https://api.github.com/users/aaronjensen/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjensen/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T21:56:28Z","updated_at":"2015-09-09T21:56:28Z","body":":+1:"}}