Skip to content

Commit

Permalink
fixup! chore(refactor): finish passing npm context
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jun 10, 2021
1 parent b896e75 commit 9884a03
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/lib/utils/error-message.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const t = require('tap')
const path = require('path')

// make a bunch of stuff consistent for snapshots

Expand Down Expand Up @@ -463,6 +464,10 @@ t.test('explain ERESOLVE errors', t => {
code: 'ERESOLVE',
})
t.matchSnapshot(errorMessage(er, npm))
t.strictSame(EXPLAIN_CALLED, [[er, undefined, '/some/cache/dir/eresolve-report.txt']])
t.match(EXPLAIN_CALLED, [[
er,
undefined,
path.resolve(npm.cache, 'eresolve-report.txt'),
]])
t.end()
})

0 comments on commit 9884a03

Please sign in to comment.