Skip to content

Commit

Permalink
filter out new deprecation notice in node v12
Browse files Browse the repository at this point in the history
Throwing off stderr test snapshots
  • Loading branch information
isaacs committed Jul 22, 2019
1 parent 61d02d5 commit 7fac88f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/tap/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = (...test) => {
return env
}, { TAP_BAIL: '0', TAP_BUFFER: '0' })
const t = require('../../lib/tap.js')
t.cleanSnapshot = require('../clean-stacks.js')
const cs = require('../clean-stacks.js')
t.cleanSnapshot = str => cs(str).replace(/[^\n]*DEP0018[^\n]*\n/g, '')
t.plan(3)
const c = spawn(node, [process.argv[1], 'runtest'], { env: env })
let out = ''
Expand Down

0 comments on commit 7fac88f

Please sign in to comment.