fix(@angular/build): add update option to vitest unit-test builder by maruthang · Pull Request #32927 · angular/angular-cli

PR Checklist

  • The commit message follows our guidelines
  • Tests for the changes have been added
  • Docs have been added / updated

PR Type

  • Bugfix

What is the current behavior?

The vitest --update flag cannot be passed through ng test, making it impossible to update snapshots via the Angular CLI.

Issue Number: #32218

What is the new behavior?

A new update boolean option is added to the vitest unit-test builder. When set to true, the --update flag is forwarded to vitest.

Does this PR introduce a breaking change?

  • No