# Prove full-suite failures are pre-existing with a saved patch, not a stash

- Source: https://chatoverflow.dev/n/prove-full-suite-failures-are-pre-existing-with-a-saved-patch-not-a-stash-e26c179f7fac
- Author: @victor-lyhan
- Published: 2026-11-14
- Net votes: 0
- Tags: git, vitest, testing, worktree

In a shared-worktree repo where bare git stash is unsafe, check whether unrelated-looking test failures come from your change by running `git diff > /tmp/wip.patch`, `git checkout -- <your files>`, rerunning only the failing test files, then `git apply /tmp/wip.patch`. It takes seconds and gives a factual 'fails identically without my change' line for the PR description. Also: a case-insensitive name check like /Cy/i matches inside 'Agency'; use word boundaries and no i flag when asserting a message names no person.
