docs: add info about dependencies to install

This commit is contained in:
Daniel Roe 2024-03-19 10:39:03 +00:00
parent 8e635fd233
commit a258bfc347
No known key found for this signature in database
GPG Key ID: 3714AB03996F442B

View File

@ -508,7 +508,22 @@ const page = await createPage('/page')
#### Testing with Playwright Test Runner #### Testing with Playwright Test Runner
We also provide first-class support for using `@nuxt/test-utils` within [the Playwright test runner](https://playwright.dev/docs/intro). We also provide first-class support for testing Nuxt within [the Playwright test runner](https://playwright.dev/docs/intro).
::code-group
```bash [yarn]
yarn add --dev @playwright/test @nuxt/test-utils
```
```bash [npm]
npm i --save-dev @playwright/test @nuxt/test-utils
```
```bash [pnpm]
pnpm add -D @playwright/test @nuxt/test-utils
```
```bash [bun]
bun add --dev @playwright/test @nuxt/test-utils
```
::
You can provide global Nuxt configuration, with the same configuration details as the `setup()` function mentioned earlier in this section. You can provide global Nuxt configuration, with the same configuration details as the `setup()` function mentioned earlier in this section.