Skip to content

Commit

Permalink
chore: remove require-inject
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jan 13, 2022
1 parent 5dfc980 commit c618876
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -44,7 +44,6 @@
"devDependencies": {
"@npmcli/template-oss": "^2.4.0",
"eslint": "^8.0.0",
"require-inject": "^1.4.4",
"tap": "^15.0.10"
},
"dependencies": {
Expand Down
4 changes: 1 addition & 3 deletions test/test.js
@@ -1,8 +1,6 @@
const tap = require('tap')
const { test } = tap

const requireInject = require('require-inject')

const mapWorkspaces = require('../')

tap.cleanSnapshot = str => {
Expand Down Expand Up @@ -409,7 +407,7 @@ test('unexpected rpj errors', t => {
const err = new Error('ERR')
err.code = 'ERR'

const mapW = requireInject('../', {
const mapW = t.mock('../', {
'read-package-json-fast': () => Promise.reject(err),
})

Expand Down

0 comments on commit c618876

Please sign in to comment.