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 — [5.0] `--project` filter does not match in benchmark mode, due to new project suffix · Issue #11149 · vitest-dev/vitest

[5.0] --project filter does not match in benchmark mode, due to new project suffix #11149

New issue
Copy link
New issue
Copy link
Open
Bug
Open
[5.0] --project filter does not match in benchmark mode, due to new project suffix#11149
Bug
Copy link
Labels
pending triage

Description

@spaceemotion
spaceemotion
opened on Sep 4, 2026
Issue body actions

Describe the bug

With Vitest v4, the vitest bench command worked like the regular test/run command when the --project option was used. However, with v5, each project now gets a counter-part for benchmarking that has a " (bench)" suffix.

This means the same --project option does not work, and instead requires a regex-based filter, or the suffix added to the name.

Reproduction

https://stackblitz.com/edit/vitest-dev-vitest-jhekadcz?file=vite.config.ts

Run: pnpm run test bench --project=@workspace/test

System Info

System:
    OS: Linux 6.18 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (24) x64 AMD Ryzen 9 7950X 16-Core Processor
    Memory: 18.22 GB / 23.47 GB
    Container: Yes
    Shell: 3.6.1 - /usr/bin/fish
  Binaries:
    Node: 24.15.0 - /mnt/wslg/runtime-dir/fnm_multishells/70914_1788521686026/bin/node
    npm: 11.12.1 - /mnt/wslg/runtime-dir/fnm_multishells/70914_1788521686026/bin/npm
    pnpm: 11.10.0 - /mnt/wslg/runtime-dir/fnm_multishells/70914_1788521686026/bin/pnpm
  Browsers:
    Chrome: 151.0.7922.71
  npmPackages:
    vitest: catalog: => 5.0.0

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • The provided reproduction is a minimal reproducible example of the bug.

Activity

  1. spaceemotion
    added
    pending triage
    on Sep 4, 2026
  2. spaceemotion
    added the
    Bug
    issue type on Sep 4, 2026
  3. copley commented on Sep 6, 2026

    @copley
    copley
    on Sep 6, 2026 – with ChatGPT Codex Connector
    More actions

    Written by Codex on behalf of @copley, who reviewed and approved this comment.

    The issue was reproduced against commit 7c818153add03b0bca54453a54e76961dd5be18d: benchmark expansion adds the (bench) suffix before --project filtering, so the configured project name no longer matches in benchmark-only mode. A minimal fix is ready with regression coverage for selection, exclusion, and unchanged ordinary test-mode behaviour. @copley intends to submit it as a PR after final review.

  4. copley
    added a commit that references this issue on Sep 6, 2026

    fix: match benchmark parent project (fix vitest-dev#11149)

    This issue will close once commit 3d3220c is merged into the 'main' branch.
    3d3220c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pending triage

    Type

    Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      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.