Skip to content

Commit

Permalink
Fix try catch check in pnpm usage for create-next-app
Browse files Browse the repository at this point in the history
  • Loading branch information
Nsttt committed Oct 13, 2022
1 parent d54e2e5 commit 48ae4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/create-next-app/index.test.ts
Expand Up @@ -649,9 +649,9 @@ describe('create next app', () => {

it('should infer pnpm as the package manager with example', async () => {
try {
await execa('yarn', ['--version'])
await execa('pnpm', ['--version'])
} catch (_) {
// install yarn if not available
// install pnpm if not available
await execa('npm', ['i', '-g', 'pnpm'])
}

Expand Down

0 comments on commit 48ae4d3

Please sign in to comment.