Unverified Commit 1bb05961 authored by Max Proske's avatar Max Proske Committed by GitHub

Fix "infer pnpm with example" test outside test suite (#43487)

Fixes pnpm w/ example being the only test outside the test suite.

Before:
```ts
describe('create next app', () => {
  // ...
})

it('should infer pnpm as the package manager with example', () => { ... })
```

After:
```ts
describe('create next app', () => {
  // ...

  it('should infer pnpm as the package manager with example', () => { ... })
})
```


## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm build && pnpm lint`
parent f6106d20
...@@ -606,9 +606,8 @@ describe('create next app', () => { ...@@ -606,9 +606,8 @@ describe('create next app', () => {
projectFilesShouldExist({ cwd, projectName, files }) projectFilesShouldExist({ cwd, projectName, files })
}) })
}) })
})
it('should infer pnpm as the package manager with example', async () => { it('should infer pnpm as the package manager with example', async () => {
try { try {
await execa('pnpm', ['--version']) await execa('pnpm', ['--version'])
} catch (_) { } catch (_) {
...@@ -640,4 +639,5 @@ it('should infer pnpm as the package manager with example', async () => { ...@@ -640,4 +639,5 @@ it('should infer pnpm as the package manager with example', async () => {
expect(res.exitCode).toBe(0) expect(res.exitCode).toBe(0)
projectFilesShouldExist({ cwd, projectName, files }) projectFilesShouldExist({ cwd, projectName, files })
}) })
})
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment