Skip to content

Commit

Permalink
chore(exec): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno authored and lukekarrys committed Apr 20, 2022
1 parent 6253d19 commit 252a02c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/lib/commands/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1365,6 +1365,7 @@ t.test('workspaces', async t => {
}),
})

const pkg = { name: 'foo', version: '1.2.3', bin: { foo: 'foo' } }
PROGRESS_IGNORED = true
npm.localBin = resolve(npm.localPrefix, 'node_modules', '.bin')

Expand Down Expand Up @@ -1407,7 +1408,11 @@ t.test('workspaces', async t => {
config.yes = false

ARB_ACTUAL_TREE[npm.localPrefix] = {
children: new Map([['foo', { name: 'foo', version: '1.2.3' }]]),
inventory: {
query () {
return new Set([{ ...pkg, package: pkg }])
},
},
}

await exec.execWorkspaces([], ['a', 'b'])
Expand Down

0 comments on commit 252a02c

Please sign in to comment.