Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Mar 9, 2022
1 parent 1995b2f commit b862145
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/plugin-commands-installation/src/remove.ts
Expand Up @@ -65,6 +65,7 @@ export function rcOptionsTypes () {
'shared-workspace-lockfile',
'store',
'store-dir',
'strict-peer-dependencies',
'virtual-store-dir',
], allTypes)
}
Expand Down
4 changes: 2 additions & 2 deletions packages/pnpm/test/hooks.ts
Expand Up @@ -92,10 +92,10 @@ test('filterLog hook filters peer dependency warning', async () => {
}
`
await fs.writeFile('.pnpmfile.cjs', pnpmfile, 'utf8')
const result = execPnpmSync(['add', '@rollup/pluginutils@3.1.0'])
const result = execPnpmSync(['add', '@rollup/pluginutils@3.1.0', '--no-strict-peer-dependencies'])

expect(result.status).toBe(0)
expect(result.stdout.toString()).toEqual(
expect.not.stringContaining('requires a peer of rollup')
)
})
})
4 changes: 2 additions & 2 deletions packages/pnpm/test/install/hooks.ts
Expand Up @@ -607,8 +607,8 @@ test('readPackage hook is used during removal inside a workspace', async () => {
`, 'utf8')

process.chdir('project')
await execPnpm(['install'])
await execPnpm(['uninstall', 'is-positive'])
await execPnpm(['install', '--no-strict-peer-dependencies'])
await execPnpm(['uninstall', 'is-positive', '--no-strict-peer-dependencies'])

process.chdir('..')
const lockfile = await readYamlFile<Lockfile>('pnpm-lock.yaml')
Expand Down
2 changes: 1 addition & 1 deletion packages/pnpm/test/monorepo/index.ts
Expand Up @@ -1189,7 +1189,7 @@ test('peer dependency is grouped with dependent when the peer is a top dependenc
})
}

await execPnpm(['uninstall', 'ajv'])
await execPnpm(['uninstall', 'ajv', '--no-strict-peer-dependencies'])

{
const lockfile = await readYamlFile<Lockfile>(path.resolve('..', WANTED_LOCKFILE))
Expand Down

0 comments on commit b862145

Please sign in to comment.