Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Vitest]: ng cli doesn't accept pass --testNamePattern to Vitest #30824

Open
Labels
angular/build:unit-test featureIssue that requests a new feature feature: under considerationFeature request for which voting has completed and the request is now under consideration
@DmitryMakhnev

Description

Command

test

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

It's not possible to pass Vitest's --testNamePattern option to ng

Image Image Image

Minimal Reproduction

https://github.com/DmitryMakhnev/ng20-vitest-test-filter-pattern

Exception or Error

Your Environment

Angular CLI: 20.0.1
Node: 22.15.0
Package Manager: npm 10.9.2
OS: darwin arm64
Angular: 20.0.2
... common, compiler, compiler-cli, core, forms
... platform-browser, router
Package Version
------------------------------------------------------
@angular-devkit/architect 0.2000.1
@angular-devkit/core 20.0.1
@angular-devkit/schematics 20.0.1
@angular/build 20.0.1
@angular/cli 20.0.1
@schematics/angular 20.0.1
rxjs 7.8.2
typescript 5.8.3

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    angular/build:unit-test featureIssue that requests a new feature feature: under considerationFeature request for which voting has completed and the request is now under consideration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /