Skip to content

test(e2e): one bootHub helper owns every hub's lifecycle (CL-9621) - #1045

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-9621-boot-hub-helper
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-9621-boot-hub-helper

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Adds e2e/lib/hub.ts: bootHub() owns a hub's disposable data dir, env, shutdown, sidecar reaping (moved from browser.ts) and cleanup. Browser, composition (two hubs) and grants suites use it; it is the only createHubServer import under e2e/.
Must be called synchronously in the gated describe body, because Bun runs an afterAll registered inside a hook or test immediately; it returns a getter for the booted hub.
Verified: bun test e2e passes twice on one fresh database and no apps/sidecar process survives.

Resolves CL-9621

@linear-code

linear-code Bot commented Sep 30, 2026

Copy link
Copy Markdown

CL-9621

@TheGreatAxios
TheGreatAxios merged commit 6000abf into main Sep 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant