docs(intro-js): add pnpm reference (#16948)

This commit is contained in:
Max Schmitt 2022-08-31 12:30:18 +02:00 committed by GitHub
parent 6533eb2e5b
commit e6a28eb55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,8 @@ Get started by installing Playwright using npm or yarn. Alternatively you can al
defaultValue="npm"
values={[
{label: 'npm', value: 'npm'},
{label: 'yarn', value: 'yarn'}
{label: 'yarn', value: 'yarn'},
{label: 'pnpm', value: 'pnpm'}
]
}>
<TabItem value="npm">
@ -38,6 +39,14 @@ npm init playwright@latest
yarn create playwright
```
</TabItem>
<TabItem value="pnpm">
```bash
pnpm dlx create-playwright
```
</TabItem>
</Tabs>
@ -92,4 +101,4 @@ npx playwright show-report
- [Write tests using web first assertions, page fixtures and locators](./writing-tests.md)
- [Run single tests, multiple tests, headed mode](./running-tests.md)
- [Generate tests with Codegen](./codegen.md)
- [See a trace of your tests](./trace-viewer-intro.md)
- [See a trace of your tests](./trace-viewer-intro.md)