Skip to content

Error: Expected a single value for option --exclude <glob>, received ["a/*", "b/*"] #5779

@fregante

Description

@fregante

Clear and concise description of the problem

Until Vitest 1.2 I was able to use two --exclude globs, but this feature some inexplicably removed. I'm using this to split certain tests on CI so these globs cannot be part of the static configuration.

The command I'm running is:

vitest --run --exclude build/features* --exclude **/selectors*

Suggested solution

Please restore the ability to call --exclude multiple times

Alternative

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p3-minor-bugAn edge case that only affects very specific usage (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions