Skip to content

Make six rebuild-flow case modules ordinary Vitest suites #8354

Closed

Description

@jyaunches

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 tests
  • rebuild-flow-recovery-cases.ts: 754 lines, 21 tests
  • rebuild-flow-credential-preflight-cases.ts: 587 lines, 19 tests
  • rebuild-flow-target-session-cases.ts: 197 lines, 5 tests
  • rebuild-flow-target-credentials-cases.ts: 305 lines, 14 tests
  • rebuild-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.ts suite.
  • Remove each exported registerRebuildFlow*Tests function and register its describe block 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

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*Tests export 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:check

Activity

  1. added
    help wanted
    area: ci
    area: architecture
    on Aug 5, 2026
  2. added theissue type on Aug 5, 2026
  3. added a commit that references this issue on Aug 7, 2026
    daab2e4
  4. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: architecturearea: cihelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions