Skip to content

test(web): isolate BoardCard so Fork CI can go green - #476

Merged
patroza merged 1 commit into
fork/devfrom
fix/boardcard-isolate-server-mock
Sep 18, 2026
Merged

patroza merged 1 commit into
fork/devfrom
fix/boardcard-isolate-server-mock

Conversation

@patroza

@patroza patroza commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Fork CI on b4ad10f8 (dfx 1.0.16) failed twice on all 11 BoardCard tests:

No \"environmentServerConfigsAtom\" export is defined on the \"../../state/server\" mock

BoardCard now opens PRs through useOpenPrLink → that atom. Under isolate: false, UsagePage.refresh.test.tsx binds a stub state/server mock first and poisons BoardCard. That red push job blocks the poller from deploying the Discord gateway fix.

Isolate BoardCard and the stub mock so they cannot share a module registry.

BoardCard now reads environmentServerConfigsAtom via useOpenPrLink.
Under isolate:false a sibling (UsagePage.refresh) binds a partial
../../state/server mock first, and Fork CI fails all 11 BoardCard
tests. That red push job blocked the poller from deploying dfx 1.0.16.
@patroza
patroza marked this pull request as ready for review September 18, 2026 13:26
@patroza
patroza merged commit a759f75 into fork/dev Sep 18, 2026
7 of 10 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