Skip to content

Update Vitest to 5.0.3 to stop leaking temp directories - #1648

Merged
JeroenDeDauw merged 1 commit into
masterfrom
update-vitest-5.0
Oct 12, 2026
Merged

JeroenDeDauw merged 1 commit into
masterfrom
update-vitest-5.0

Conversation

@JeroenDeDauw

Copy link
Copy Markdown
Member

Vitest 5.0.0 leaves a directory under /tmp after every run, so machines that run the suite often fill up their /tmp (vitest-dev/vitest#11224). 5.0.3 fixed this (vitest-dev/vitest#11248).

AI-authored — Claude Code, Opus 5.5 (max); detailed spec from @JeroenDeDauw, no revisions; diff not yet human-reviewed; type check, lint and full Vitest suite pass locally (Vitest in UTC), A/B run shows the leak gone.

Production notes

5.0.4 is out but younger than the min-release-age=3 gate in .npmrc, so 5.0.3 is the newest allowed patch. Running the suite with TMPDIR set to an empty directory left a <nanoid>/client/ directory of 480 files behind on 5.0.0 and nothing on 5.0.3. Outside UTC, DateTimeDisplay.spec.ts "renders the instant formatted in the host timezone" can fail on both versions: under Europe/Berlin with an en-US locale it looks for "14" in 12-hour output.

Vitest 5.0.0 leaves a directory under /tmp after every run, so machines that run the suite often fill up their /tmp (vitest-dev/vitest#11224). 5.0.3 fixed this (vitest-dev/vitest#11248).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw added the dependencies Pull requests that update a dependency file label Oct 12, 2026
@JeroenDeDauw
JeroenDeDauw marked this pull request as ready for review October 12, 2026 13:32
@JeroenDeDauw
JeroenDeDauw merged commit 5e136af into master Oct 12, 2026
6 checks passed
@JeroenDeDauw
JeroenDeDauw deleted the update-vitest-5.0 branch October 12, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant