Repository navigation
chore(deps-dev): bump vitest from 4.1.11 to 5.0.1 - #288
Conversation
allisonmahmood
left a comment
There was a problem hiding this comment.
Reviewed origin/deps/vite-8...f19091c against the Vitest 5 migration guide and PR body.
Standards
No findings. All 17 Vitest declarations and lockfile resolutions agree; Vite 8.3.0, CI's Node 22.22/24, and the Effect Vitest peer are compatible.
Spec
Blocking: packages/portal/package.json:21 runs bare vitest run, but portal has no local config. The guide says "Vitest no longer searches parent directories for config files."
Read-only config probes confirmed v4 loads the root config there; v5 resolves no global setup, offline guard, or development condition. Running the portal suite with isolated temporary caches reproduced three suite failures and 49 skipped tests: inject("postgres").templateDatabase throws at packages/sql/src/testing.ts:47. scripts/test-all.sh:20 reaches this path through Turbo. The reported 939/939 root pass does not cover package-local discovery.
Add packages/portal/vitest.config.ts with the existing Postgres-backed package re-export: export { default } from "../../test/vitest.config.js";.
Other checks:
- Shared/root/Postgres/Clerk configs and other package configs need no project-inheritance changes.
inject/provideremain compatible; database names/ports use no worker-ID arithmetic.clearMocks: trueis safe for the test-local mocks. - Clerk/all-test scripts and workflows have no Vitest name-boundary filters or reporter-output consumers. Browser tests use Playwright, not Vitest browser mode.
.vitest/is not ignored. JSON/JUnit now default to.vitest/json/output.jsonand.vitest/junit/output.xml, but neither reporter nor attachment generation is configured. Adding the ignore is optional hygiene, not a blocker.
Not happy to merge on green CI alone: fix and verify the portal package run first, then merge once CI is green.
Standards: 0 findings. Spec: 1 blocking config-discovery regression.
allisonmahmood
left a comment
There was a problem hiding this comment.
Second pass at be3f55b, reviewing origin/deps/vite-8...HEAD.
Standards
No new findings. Portal now uses the existing shared-config re-export.
Spec
Fixed. Read-only Vitest 5 config resolution from packages/portal now loads test/postgres.ts, test/setup.ts, and the development condition. git check-ignore confirms .vitest/ covers root and package-local artifacts.
The reported 49/49 package-scoped pass covers the original failing path; I did not rerun the suite. No new blockers found. Happy for this to merge once CI is green.
Standards: 0 findings. Spec: 0 remaining findings.
ebdf6d7 to
b0b5991
Compare
be3f55b to
a282c80
Compare
Astra reviewReviewed StandardsNo merge-blocking method or YAGNI findings. The portal config reuses the existing shared test configuration. The SpecNo merge-blocking intent findings. All 17 direct Vitest declarations move to Static review only. This worktree has no installed dependencies, so I did not rerun tests. CI for the reviewed commit was still queued or running when checked. Summary: Standards 0 blocking findings; Spec 0 blocking findings. No worst issue on either axis. |
a282c80 to
c221593
Compare
b0b5991 to
878041f
Compare
Opus reviewReviewed Independently checked against the Vitest 5 guide:
Findings:
Would merge on green CI. |
c221593 to
972c7db
Compare
|
Disposition for the Astra and Opus reviews: docs/DEVELOPMENT.md now states that every tested package carries its own |
972c7db to
b1810b6
Compare
76efc8a to
577a9ea
Compare
b1810b6 to
6817db9
Compare
577a9ea to
ca305df
Compare
6817db9 to
40acdb0
Compare
62da272 to
024566c
Compare
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Vitest 5 no longer looks up ancestor configs, so a package-scoped run in portal lost the Postgres setup; re-export the shared config like every other package. Ignore the new .vitest artifact directory. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
40acdb0 to
62c0a35
Compare
@effect/vitestrc.115 declares a peer on vitest 5, which the Effect bump (#284) left as a warning. This moves every package's vitest devDependency to 5.0.1, which clears the peer warning and lands the runner major on its own.Checked against the Vitest 5 migration guide: the repo uses none of the changed surfaces. No pool or worker id math, no
sequentialAPI, no removed entry points, no reporter or coverage config, no nestedvi.mock, notoThrow("")orexpect.poll;inject,provideandglobalSetupare unchanged. Mocks now clear before each test by default, which the one fake-timer suite tolerates.Verification
pnpm lint,pnpm typecheckpass.pnpm test: 939 of 939 pass, no deprecation output.pnpm test:postgres-concurrency: 7 of 7 pass.Stacked on
deps/vite-8(#286), since vitest 5 requires Vite 6.4 or later.Model: Claude Fable 5.1. Harness: Claude Code.