Source
From PR #65 review follow-up: #65 (comment)
Context
Cx3 legacy item: bootstrapSession currently has no _resetBootstrapForTesting hook. Tests rely on vi.resetModules(), which works today, so PR #65 intentionally did not add a YAGNI export.
Desired direction
Add an explicit test-only reset hook only if bootstrap tests become brittle, slow, or need to coordinate multiple bootstrap cycles in one module instance. Keep it out of production app assembly semantics.
Acceptance
- Bootstrap tests can reset bootstrap singleton state without relying on module cache resets.
- The hook is clearly test-only and does not become part of public runtime API.
- Existing cold-start refresh behavior remains covered.
Source
From PR #65 review follow-up: #65 (comment)
Context
Cx3 legacy item:
bootstrapSessioncurrently has no_resetBootstrapForTestinghook. Tests rely onvi.resetModules(), which works today, so PR #65 intentionally did not add a YAGNI export.Desired direction
Add an explicit test-only reset hook only if bootstrap tests become brittle, slow, or need to coordinate multiple bootstrap cycles in one module instance. Keep it out of production app assembly semantics.
Acceptance