Skip to content

Commit 6eb21aa

Browse files
committed
ignore tap lib folder in stack traces
1 parent 8faa184 commit 6eb21aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/stack.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
var StackUtils = require('stack-utils')
22

3+
// Ignore tap if it's a dependency, or anything
4+
// in this lib folder.
35
module.exports = new StackUtils({
46
internals: StackUtils.nodeInternals().concat([
5-
/node_modules[\/\\]tap[\/\\]/
7+
/node_modules[\/\\]tap[\/\\]/,
8+
new RegExp(__dirname + '\\b', 'i')
69
])
710
})

0 commit comments

Comments
 (0)