vitest run --update
doesn't work for workspaces
#5194
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Describe the bug
Running
vitest run --update
within a monorepo that's configured to use a workspace (https://vitest.dev/guide/workspace.html) doesn't update any snapshots.I've included a link to a minimal reproduction of this issue on StackBlitz below. It's a pnpm monorepo with a single package containing a single failing snapshot test.
Running
pnpm run test:run:update
yields the following output:Observe that the test fails but the snapshot is not updated, despite using the
--update
flag.Reproduction
https://stackblitz.com/edit/vitest-dev-vitest-21kers?file=package.json
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: