Skip to content

fix: unmount StoryBuilder test tree before removing the EventSource stub - #10471

Merged
atomantic merged 1 commit into
mainfrom
claim/issue-10468
Oct 7, 2026
Merged

atomantic merged 1 commit into
mainfrom
claim/issue-10468

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Closes #10468

afterEach hooks run in reverse registration order, so the suite's delete global.EventSource ran before RTL's auto-cleanup; a late useSseProgress effect could then hit a missing EventSource in CI. The nested afterEach now calls cleanup() first.

Test plan: StoryBuilder.test.jsx 41/41; pregate green.

@atomantic
atomantic merged commit 92f6071 into main Oct 7, 2026
10 checks passed
@atomantic
atomantic deleted the claim/issue-10468 branch October 7, 2026 04:47
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.

Flaky: StoryBuilder reload-banner test opens EventSource under happy-dom in CI

1 participant