GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(test): patch more paths in test build by Brooooooklyn · Pull Request #353 · voidzero-dev/vite-plus

Conversation

@Brooooooklyn

@Brooooooklyn Brooooooklyn commented Dec 17, 2025 •
edited by cursor Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Note

Adds WebdriverIO and Preview providers to the bundled test package, generalizes build patches (imports, types, locators), extends exports, and updates docs and blocklists.

  • Test build system:
    • Generalize locator patching to all browser providers (browser-playwright, browser-webdriverio, browser-preview).
    • Rewrite imports in both .js and .d.ts; add creation of browser/ entry files (context.js/.d.ts).
    • Copy root *.d.ts from @vitest/* (e.g., context.d.ts, matchers.d.ts, jest-dom.d.ts).
    • Strengthen vendor-aliases plugin: handle vitest/* and package aliases; add virtual vitest/browser; throw on missing patch points.
    • Expand EXTERNAL_BLOCKLIST to include webdriverio.
  • Exports and packaging:
    • Add subpath exports for browser-webdriverio and browser-preview in both test and CLI packages.
    • Replace old browser-playwright-context plugin export with browser-webdriverio and browser-preview.
    • Remove @vitest/browser-* providers from peer deps (now bundled); keep @vitest/ui optional.
  • Docs (BUNDLING.md):
    • Increase copied packages to include @vitest/browser-webdriverio and @vitest/browser-preview.
    • Update import rewrite table, pnpm overrides, config examples, blocklist, and aliasing details.

Written by Cursor Bugbot for commit 5319309. This will update automatically on new commits. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@Brooooooklyn
fix(test): patch more paths in test build
8dd480e
Copilot AI review requested due to automatic review settings December 17, 2025 10:31
@Brooooooklyn Graphite App

Brooooooklyn commented Dec 17, 2025

Copy link
Copy Markdown
Member Author
  • fix(test): patch more paths in test build #353 Graphite 👈 (View in Graphite)
  • main

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Copilot started reviewing on behalf of Brooooooklyn December 17, 2025 10:32
View session
Copilot AI reviewed Dec 17, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this 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 enhances the test build script to handle additional import path mappings for the @voidzero-dev/vite-plus-test package. The changes enable the package to work as a drop-in replacement for vitest by mapping both vitest/* and @voidzero-dev/vite-plus-test/* imports to the appropriate bundled files.

Key changes:

  • Added comprehensive subpath mapping for vitest/* imports (node, config, internal/browser, runners, suite, etc.) to resolve to dist files
  • Added support for @voidzero-dev/vite-plus-test/* subpaths to be treated as equivalent to vitest/* imports
  • Patched BrowserContext plugin to recognize @voidzero-dev/vite-plus-test/browser as an alias for the vitest browser context

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Brooooooklyn and others added 3 commits December 17, 2025 19:09
@Brooooooklyn @claude
docs(test): update BUNDLING.md for new import path options
45b7e4a
Document the enhanced vendor-aliases plugin capabilities:
- vitest/browser-playwright now works when vitest is overridden
- @voidzero-dev/vite-plus-test/* subpaths are supported
- Clarify the two config file import options

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@Brooooooklyn @claude
feat(test): support CLI package path aliases in vendor-aliases plugin
69cf07f
Added support for `@voidzero-dev/vite-plus/test/*` subpath imports in addition
to existing `vitest/*` and `@voidzero-dev/vite-plus-test/*` patterns.

All three import patterns now work:
- `vitest/browser-playwright` (Recommended, requires vitest override)
- `@voidzero-dev/vite-plus-test/browser-playwright` (direct test package)
- `@voidzero-dev/vite-plus/test/browser-playwright` (direct CLI package)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@Brooooooklyn
fix doc
5ceef52
@Brooooooklyn

Brooooooklyn commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

cursor review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Dec 17, 2025
View reviewed changes
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 reviewed Dec 17, 2025
View reviewed changes
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

fengmk2
fengmk2 approved these changes Dec 17, 2025
View reviewed changes
@Brooooooklyn

Brooooooklyn commented Dec 17, 2025

Copy link
Copy Markdown
Member Author

@codex review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn @claude
fix(test): throw errors instead of warnings for critical patch failures
0df0c5f
Convert warnings to errors for critical patches in patchVitestBrowserPackage:
- vendor-aliases plugin injection
- exclude list patching
- BrowserContext alias patching

This ensures build fails immediately if vitest code changes break our patches,
rather than producing confusing runtime errors for users.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Brooooooklyn
Brooooooklyn commented Dec 17, 2025
View reviewed changes

@Brooooooklyn Brooooooklyn left a comment

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Re: cursor bot comment about missing vitest/browser-playwright - This is a false positive.

The vitestSubpathMap is for browser-side resolution in the vendor-aliases plugin. But vitest/browser-playwright is ONLY imported in vite.config.ts files (Node.js context), not in browser code.

The tester chunk only imports vitest/browser:

import { userEvent, page, server } from 'vitest/browser';

Config-time imports are resolved by Node.js via pnpm overrides and package.json exports, not by the vendor-aliases plugin.


Re: @fengmk2 comment - Fixed! Changed warnings to throw errors for all critical patches in patchVitestBrowserPackage. Now the build will fail immediately if vitest code changes break our patches, rather than producing confusing runtime errors.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Copilot AI review requested due to automatic review settings December 17, 2025 11:49
Copilot started reviewing on behalf of Brooooooklyn December 17, 2025 11:50
View session
Copilot AI reviewed Dec 17, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.


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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/test/BUNDLING.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/test/BUNDLING.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 17, 2025

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Brooooooklyn added 2 commits December 17, 2025 22:21
@Brooooooklyn
patch more packages
0ba64ea
@Brooooooklyn
save
3cb11d2
Copilot AI review requested due to automatic review settings December 18, 2025 03:11
Copilot started reviewing on behalf of Brooooooklyn December 18, 2025 03:12
View session
Copilot AI reviewed Dec 18, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
fix typecheck
5319309
@Brooooooklyn

Brooooooklyn commented Dec 18, 2025

Copy link
Copy Markdown
Member Author

cursor review

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Dec 18, 2025
View reviewed changes
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
update doc
2af8ffb
Copilot AI review requested due to automatic review settings December 18, 2025 05:06
Copilot started reviewing on behalf of Brooooooklyn December 18, 2025 05:07
View session
Copilot AI reviewed Dec 18, 2025
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/test/build.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn Graphite App

Brooooooklyn commented Dec 18, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Merge activity

  • Dec 18, 6:03 AM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Dec 18, 6:03 AM UTC: @Brooooooklyn merged this pull request with Graphite.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Brooooooklyn
Brooooooklyn merged commit 7153ea3 into main Dec 18, 2025
@Brooooooklyn
Brooooooklyn deleted the 12-17-fix_test_patch_more_paths_in_test_build branch December 18, 2025 06:03
wan9chi added a commit that referenced this pull request Jul 15, 2026
@wan9chi @claude
chore: bump vite-task to 4003f65 (#2167)
8ea4145
Bumps the `vite-task` git dependency from `cb580c2` to `4003f65`.

## Changes

The delta is entirely internal `fspy` (file-access tracking)
shared-memory work — no user-facing CLI flags, config fields, or
behavior changes, so no docs updates were needed.

- **fix(fspy):** use `memfd` for Linux shared memory — automatic
file-access tracking on Linux now works in containers and Kubernetes
runners with limited `/dev/shm` space
([#523](voidzero-dev/vite-task#523),
[#353](voidzero-dev/vite-task#353))
- **perf(fspy):** use sparse Windows shared memory — Windows file-access
tracking now uses sparse temporary backing files where supported,
avoiding upfront allocation of the full backing file on disk
([#524](voidzero-dev/vite-task#524))
- **refactor(fspy):** own macOS shared-memory mapping
([#526](voidzero-dev/vite-task#526))
- **docs/test(fspy):** document shared-memory facade ownership semantics
([#521](voidzero-dev/vite-task#521)); reproduce
constrained dev shm failure
([#522](voidzero-dev/vite-task#522))

The lockfile change reflects this refactor: `fspy` now pulls in `memfd`
and drops `shared_memory`.

## Validation

- `cargo check --workspace` passes — the new `vite-task` compiles
cleanly, confirming no breaking changes on the consuming side (including
`vite_cli_snapshots`, which compiles against vite-task's PTY/snapshot
test crates).
- vite-plus crate tests pass. (One pre-existing, environment-specific
stack overflow in `vite_global_cli`'s
`unknown_argument_detected_with_pass_as_value_hint` clap-parsing test
reproduces identically on `main` and is unrelated to this bump.)
- PTY snapshot output is unchanged by the bump; the remaining local
snapshot diffs in this sandbox are all environmental (no built
`packages/cli/dist`, plus registry TLS/network restrictions), left to
CI, which builds the JS CLI and has registry access.

## Changelog

Full vite-task CHANGELOG diff:
``https://github.com/voidzero-dev/vite-task/compare/cb580c214bb2314fc1f633a3812782c9b3a1d956...4003f65a3e5e3d957ff81b157e85e6ee41cc59fc#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed``

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---
_Generated by [Claude
Code](https://claude.ai/code/session_01YERo1yECf81w37US2Gqnow)_

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@cursor cursor[bot] cursor[bot] left review comments
@fengmk2 fengmk2 fengmk2 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Brooooooklyn @fengmk2
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.