Repository navigation
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: ciCI workflows, checks, release automation, or GitHub Actionshelp wantedMaintainers welcome external contribution
Description
Objective
Make the extracted rebuild-flow tests ordinary Vitest project members instead of registering them through non-test helper modules.
Evidence
src/lib/actions/sandbox/rebuild-flow.test.ts is a 16-line registration stub for six modules under test/helpers/:
rebuild-flow-lifecycle-cases.ts: 659 lines, 18 testsrebuild-flow-recovery-cases.ts: 754 lines, 21 testsrebuild-flow-credential-preflight-cases.ts: 587 lines, 19 testsrebuild-flow-target-session-cases.ts: 197 lines, 5 testsrebuild-flow-target-credentials-cases.ts: 305 lines, 14 testsrebuild-flow-target-image-cases.ts: 569 lines, 11 tests
The 3,087 lines and 88 tests execute through registration, but the modules are not ordinary *.test.ts project members.
Scope
- Move each registrar to a source-local
rebuild-flow-*.test.tssuite. - Remove each exported
registerRebuildFlow*Testsfunction and register itsdescribeblock directly. - Delete the thin aggregator after all six registrations are removed.
- Preserve titles, hierarchy, hooks, and assertions.
- Do not combine or rewrite tests during this move.
Relationships
- Parent Epic: Consolidate test support and enforce test-suite boundaries #8345
- Blocked by: None. Work can start independently.
- Blocks:
- Reject test registration from helper and non-suite modules #8358 — it adds the exception-free registration guard after these violations move.
- Refactor rebuild test harnesses into a shared core with generic and Deep Agents Code profiles #8359 — it migrates the shared harness after the suites become ordinary project members.
This is not a good first issue: it moves 3,087 lines and changes Vitest collection topology.
Acceptance criteria
- Vitest discovers six ordinary source-test files.
- Exactly 88 tests remain collected from these suites.
- No
registerRebuildFlow*Testsexport or import remains. - Every moved file remains below 1,500 lines.
- Project membership and title checks pass.
Validation
npx vitest run --project cli src/lib/actions/sandbox/rebuild-flow-*.test.ts
npm run test:projects:check
npm run test-size:check
npm run test:titles:checkMetadata
Metadata
Assignees
Labels
area: architectureArchitecture, design debt, major refactors, or maintainabilityarea: ciCI workflows, checks, release automation, or GitHub Actionshelp wantedMaintainers welcome external contribution
Activity
test(sandbox): make rebuild-flow case modules ordinary suites (#8444)
ci(checks): reject Vitest test registration outside test files (NVIDI…