Skip to content

Allow to pass --update to vitestΒ #32218

@Christian24

Description

@Christian24

Command

test

Description

Vitest has an update command, that updates the visual regression screenshots and the snapshots. However, it is currently impossible to invoke this command, because the Angular CLI does not seem to pass it on to vitest. Just running vitest --update fails as well, because it is missing the vitest.config that Angular CLI seems to create in memory.

Describe the solution you'd like

Pass the --update flag vitest execution.

Describe alternatives you've considered

Maybe all arguments preceded by -- could be automatically passed on?

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions