Skip to content

Commit

Permalink
test: fix store status tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Sep 2, 2022
1 parent 829b4d9 commit ea0fb58
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/plugin-commands-store/test/storeStatus.ts
Expand Up @@ -60,6 +60,7 @@ test('CLI does not fail when store status does not find modified packages', asyn
`--store-dir=${storeDir}`,
`--registry=${REGISTRY}`,
'--verify-store-integrity',
'--config.resolution-mode=highest',
'add',
'eslint@3.4.0',
'gulp@4.0.2',
Expand All @@ -70,7 +71,16 @@ test('CLI does not fail when store status does not find modified packages', asyn
'koorchik/node-mole-rpc',
])
// store status does not fail on not installed optional dependencies
await execa('node', [pnpmBin, 'add', 'not-compatible-with-any-os', '--save-optional', '--store-dir', storeDir, '--registry', REGISTRY, '--verify-store-integrity'])
await execa('node', [
pnpmBin,
'add',
'not-compatible-with-any-os',
'--save-optional',
`--store-dir=${storeDir}`,
`--registry=${REGISTRY}`,
'--verify-store-integrity',
'--config.resolution-mode=highest',
])

const modulesState = await project.readModulesManifest()
await store.handler({
Expand Down

0 comments on commit ea0fb58

Please sign in to comment.