test: add test for vitest browser mode#235
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds end-to-end snapshot tests for Vitest’s browser mode and stabilizes snapshots across platforms, especially macOS symlink paths and timing units.
- Add Vitest browser mode snap test and related fixtures
- Normalize duration outputs (including µs) and resolve tmpdir symlink to stabilize in snapshots
- Update CI to run E2E on Ubuntu/mac and install Playwright Chromium
Reviewed Changes
Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pnpm-workspace.yaml | Adds @vitest/browser and playwright to catalog to support browser-mode tests |
| packages/tools/src/utils.ts | Extends unstable output normalization to include µs and adjusts duration replacement placement |
| packages/tools/src/snap-test.ts | Resolves tmpdir symlink, symlinks node_modules into temp dirs, and adds per-test platform skipping |
| packages/cli/snap-tests/yarn-install-with-options/steps.json | Adds ignoredPlatforms to skip on Linux |
| packages/cli/snap-tests/yarn-install-with-options/snap.txt | Updates expected default cwd output after symlink resolution |
| packages/cli/snap-tests/vitest-browser-mode/vitest.config.ts | Adds Vitest browser mode configuration (Playwright/Chromium) |
| packages/cli/snap-tests/vitest-browser-mode/steps.json | Defines steps for browser-mode snap test, skipping on Linux |
| packages/cli/snap-tests/vitest-browser-mode/src/* | Adds simple test and sources used by the browser-mode test |
| packages/cli/snap-tests/vitest-browser-mode/snap.txt | Snapshot for browser-mode test runs and cache behavior |
| packages/cli/snap-tests/vitest-browser-mode/package.json | Empty placeholder for test fixture |
| packages/cli/snap-tests/fingerprint-ignore-test/steps.json | Adds ignoredPlatforms to skip on Linux |
| packages/cli/package.json | Declares @vitest/browser and playwright as devDependencies for CLI package |
| .github/workflows/ci.yml | Adds Ubuntu to matrix and installs Playwright Chromium before E2E tests |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 15 out of 16 changed files in this pull request and generated 4 comments.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
8b46431 to
4049e8b
Compare
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 15 out of 16 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Merge activity
|
Includes: - ux: hint Escape key when no tasks match in interactive selector (#235) - docs: overhaul README.md, CLAUDE.md and add CONTRIBUTING.md (#234) https://claude.ai/code/session_0139LsSbe67hcD8NKKaK6Y8U
## Summary - Bump vite-task from `28f371a1` to `398a147f` - Includes: hint Escape key when no tasks match in interactive selector (#235), overhaul README/CLAUDE.md and add CONTRIBUTING.md (#234) ## Test plan - [x] `cargo check` passes - [ ] CI passes https://claude.ai/code/session_0139LsSbe67hcD8NKKaK6Y8U Co-authored-by: Claude <noreply@anthropic.com>

The added vitest browser mode test will be fixed and enabled in #234