Skip to content

chore: move dependencies out of snap test case#264

Merged
branchseer merged 1 commit intomainfrom
10-28-chore_move_dependencies_out_of_snap_test_case
Oct 28, 2025
Merged

chore: move dependencies out of snap test case#264
branchseer merged 1 commit intomainfrom
10-28-chore_move_dependencies_out_of_snap_test_case

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Oct 28, 2025

TL;DR

Added @vitest/browser-playwright as a catalog dependency

What changed?

  • Added @vitest/browser-playwright to the CLI package dependencies
  • Removed the @vitest/browser-playwright dependency from the vitest-browser-mode snap test package.json
  • Modified the vitest-browser-mode snap test to no longer run vite install before tests
  • Updated the snap test output to reflect these changes

How to test?

  1. Run the vitest-browser-mode snap test to verify it works without the explicit installation step
  2. Verify that browser tests using Playwright work correctly with the updated dependencies

Why make this change?

This change streamlines the testing process by making @vitest/browser-playwright available as a catalog dependency rather than requiring it to be installed separately in each test. This eliminates the need for an explicit installation step in the vitest-browser-mode snap test, making the testing workflow more efficient and consistent.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer marked this pull request as ready for review October 28, 2025 02:46
Copilot AI review requested due to automatic review settings October 28, 2025 02:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR streamlines the vitest-browser-mode snap test by moving the @vitest/browser-playwright dependency from being test-specific to a shared catalog dependency, eliminating the need for an explicit installation step during test execution.

Key Changes:

  • Added @vitest/browser-playwright to the shared dependency catalog and CLI package
  • Removed the separate installation step from the vitest-browser-mode snap test
  • Updated vitest and @vitest/browser versions from 4.0.3 to 4.0.4

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pnpm-workspace.yaml Added @vitest/browser-playwright v4.0.4 to the catalog and bumped vitest/browser versions
packages/cli/package.json Added @vitest/browser-playwright as a catalog dependency
packages/cli/snap-tests/vitest-browser-mode/package.json Removed the @vitest/browser-playwright dependency entry
packages/cli/snap-tests/vitest-browser-mode/steps.json Removed the vite install command from test steps
packages/cli/snap-tests/vitest-browser-mode/snap.txt Updated expected output to exclude the installation step output
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@branchseer branchseer merged commit a74a40b into main Oct 28, 2025
18 of 19 checks passed
Copy link
Copy Markdown
Member Author

Merge activity

@branchseer branchseer deleted the 10-28-chore_move_dependencies_out_of_snap_test_case branch October 28, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants