You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: MediumStraightforward change, about a day or lessPriority: LowNice to have, cosmetic or speculative
vitest, @vitest/browser and @vitest/coverage-v8 are held at 4.1.11 in the root package.json by the dependency update on the deps branch. The newest release eligible under the repo's 7-day minimumReleaseAge on 2026-10-04 was 5.0.2.
Why it was not upgraded
@douglasneuroinformatics/libnest@9.0.0 peers vitest 4.x, and the API tests depend on libnest at runtime:
No longer blocked upstream. 3f86b10, the first commit on open PR #1660, does this upgrade. But #1660 conflicts with main, and merging it as written would not close this issue (see Landing). @vitest/browser left the root package.json in 08a5736, so only vitest and @vitest/coverage-v8 move (package.json:43, :58).
@douglasneuroinformatics/libnest@10.0.0 (published 2026-10-06) peers vitest: "5.x", not ^4 || ^5. It also peers @nestjs/* ^12.0.0 and reflect-metadata ^0.2.2. So Vitest 5 and NestJS 12 are one upgrade, and 3f86b10 does both. Close this together with #1624.
What the checklist missed
The change that actually breaks this repo is not on the list. All 21 project configs merge the root default export (for example apps/api/vitest.config.ts:7), and that export carries projects (vitest.config.ts:34). Vitest 5 reads a projects field in a referenced config as nested projects (migration guide, "Referenced Config Files Can Define Their Own Projects"), so every run stops before it collects a file. 3f86b10 exports a named baseConfig (include and watch) from the root config, layers coverage and projects on top of it in the default export with mergeConfig, and switches the 21 configs to import { baseConfig }. A package's own test script then works, so the commit also rewrites step 6 of add-vitest-project.md.
The rest of the list needs no change here or is already handled:
No vi.mock or vi.hoisted call is nested, and nothing uses testNamePattern, VITEST_WORKER_ID or VITEST_POOL_ID.
clearMocks broke two tests that assert on calls made at import time or in beforeAll: packages/serve-instrument/src/__tests__/client.test.tsx and apps/gateway/src/server/__tests__/server.development.test.ts. Both now copy those calls in beforeAll.
After the rebase or cherry-pick, re-run three checks: pnpm exec vitest list --filesOnly (it should list the same number of files as main), pnpm test:coverage and pnpm test:e2e --force. main has 16 commits since c7a6364, including the new subject hub suites from feat(web): move the datahub behind a subject hub #1654. The lockfile pins 5.0.2. The newest eligible release is 5.0.5 (2026-10-15).
Area: InfrastructureDeployment, Docker, CI, logging, CLIs, build and test toolingChoreType: maintenance with no user-visible change (dependency upgrades, tooling, tests, refactors)Difficulty: MediumStraightforward change, about a day or lessPriority: LowNice to have, cosmetic or speculative
Activity
joshunrau commentedon Oct 26, 2026
No longer blocked upstream. 3f86b10, the first commit on open PR #1660, does this upgrade. But #1660 conflicts with
main, and merging it as written would not close this issue (see Landing).@vitest/browserleft the rootpackage.jsonin 08a5736, so onlyvitestand@vitest/coverage-v8move (package.json:43,:58).Coupled to #1624
@douglasneuroinformatics/libnest@10.0.0(published 2026-10-06) peersvitest: "5.x", not^4 || ^5. It also peers@nestjs/* ^12.0.0andreflect-metadata ^0.2.2. So Vitest 5 and NestJS 12 are one upgrade, and 3f86b10 does both. Close this together with #1624.What the checklist missed
The change that actually breaks this repo is not on the list. All 21 project configs merge the root default export (for example
apps/api/vitest.config.ts:7), and that export carriesprojects(vitest.config.ts:34). Vitest 5 reads aprojectsfield in a referenced config as nested projects (migration guide, "Referenced Config Files Can Define Their Own Projects"), so every run stops before it collects a file. 3f86b10 exports a namedbaseConfig(includeandwatch) from the root config, layerscoverageandprojectson top of it in the default export withmergeConfig, and switches the 21 configs toimport { baseConfig }. A package's owntestscript then works, so the commit also rewrites step 6 ofadd-vitest-project.md.The rest of the list needs no change here or is already handled:
vi.mockorvi.hoistedcall is nested, and nothing usestestNamePattern,VITEST_WORKER_IDorVITEST_POOL_ID.clearMocksbroke two tests that assert on calls made at import time or inbeforeAll:packages/serve-instrument/src/__tests__/client.test.tsxandapps/gateway/src/server/__tests__/server.development.test.ts. Both now copy those calls inbeforeAll.??as a branch. 3f86b10 adds a test toapps/web/src/utils/__tests__/series-overview.test.tsfor its?? ''fallbacks.mainhas added no??since build: upgrade dependencies held back by breaking changes #1660 branched..vitest/, which the commit adds to.gitignore.Landing
mainsince build: upgrade dependencies held back by breaking changes #1660's base (c7a6364),pnpm-lock.yamlincluded. The conflicts come from later commits on the branch: CASL (f5650f5), typedoc (bb760ef) and react-resizable-panels (96bb769). If the rest of build: upgrade dependencies held back by breaking changes #1660 stays stuck, 3f86b10 cherry-picked on its own resolves this issue and Upgrade the API to NestJS 12 (blocked on libnest) #1624.pnpm exec vitest list --filesOnly(it should list the same number of files asmain),pnpm test:coverageandpnpm test:e2e --force.mainhas 16 commits since c7a6364, including the new subject hub suites from feat(web): move the datahub behind a subject hub #1654. The lockfile pins 5.0.2. The newest eligible release is 5.0.5 (2026-10-15)..github/vitest.config.tswithimport baseConfig from '../vitest.config'and adds it to the rootprojects. Whichever of the two lands second has to switch that file toimport { baseConfig }. It also has to move ci: release from release branches and keep latest on tagged releases #1822's newprojectsentry and its coverageincludeandexcludeedits into the default export's secondmergeConfigargument. Left on the default import, thegithubproject inheritsprojectsand the run stops at startup.Closesbefore 14 numbers, so GitHub links only Upgrade the API to NestJS 12 (blocked on libnest) #1624. Give each number its own keyword, or close this issue by hand.The
Upstreamlabel no longer applies: libnest 10 has shipped, and the remaining work is in this repo.Triage note written with Claude Code. Code references point at
main@d86740e.