[READ-ONLY] Mirror of https://github.com/vitest-dev/vitest. Next generation testing framework powered by Vite. vitest.dev
test testing-tools vite
12

Configure Feed

Select the types of activity you want to include in your feed.

docs: fix visualn regression example (#8681)

### Description

<!-- Please insert your description here and provide especially info about the "what" this PR is solving -->

<!-- You can also add additional context here -->

### Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
- [ ] It's really useful if your PR references an issue where it is discussed ahead of time. If the feature is substantial or introduces breaking changes without a discussion, PR might be closed.
- [ ] Ideally, include a test that fails without this PR but passes with it.
- [ ] Please, don't make changes to `pnpm-lock.yaml` unless you introduce a new test example.
- [ ] Please check [Allow edits by maintainers](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) to make review process faster. Note that this option is not available for repositories that are owned by Github organizations.

### Tests
- [ ] Run the tests with `pnpm test:ci`.

### Documentation
- [ ] If you introduce new functionality, document it. You can run documentation with `pnpm run docs` command.

### Changesets
- [ ] Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with `feat:`, `fix:`, `perf:`, `docs:`, or `chore:`.

authored by

Vladimir and committed by
GitHub
(Oct 8, 2025, 5:54 PM +0200) 699bf804 948016d8

+15 -16
+15 -16
docs/guide/browser/visual-regression-testing.md
··· 615 615 include: ['visual-regression-tests/**/*.test.ts?(x)'], 616 616 browser: { 617 617 enabled: true, 618 - provider: playwright(), 618 + provider: playwright({ 619 + connectOptions: { 620 + wsEndpoint: `${env.PLAYWRIGHT_SERVICE_URL}?${new URLSearchParams({ 621 + 'api-version': '2025-09-01', 622 + os: 'linux', // always use Linux for consistency 623 + // helps identifying runs in the service's dashboard 624 + runName: `Vitest ${env.CI ? 'CI' : 'local'} run @${new Date().toISOString()}`, 625 + })}`, 626 + exposeNetwork: '<loopback>', 627 + headers: { 628 + Authorization: `Bearer ${env.PLAYWRIGHT_SERVICE_ACCESS_TOKEN}`, 629 + }, 630 + timeout: 30_000, 631 + } 632 + }), 619 633 headless: true, 620 634 instances: [ 621 635 { 622 636 browser: 'chromium', 623 637 viewport: { width: 2560, height: 1440 }, 624 - connect: { 625 - wsEndpoint: `${env.PLAYWRIGHT_SERVICE_URL}?${new URLSearchParams({ 626 - 'api-version': '2025-09-01', 627 - os: 'linux', // always use Linux for consistency 628 - // helps identifying runs in the service's dashboard 629 - runName: `Vitest ${env.CI ? 'CI' : 'local'} run @${new Date().toISOString()}`, 630 - })}`, 631 - options: { 632 - exposeNetwork: '<loopback>', 633 - headers: { 634 - Authorization: `Bearer ${env.PLAYWRIGHT_SERVICE_ACCESS_TOKEN}`, 635 - }, 636 - timeout: 30_000, 637 - }, 638 - }, 639 638 }, 640 639 ], 641 640 },