Skip to content

test(react): Add unit tests for PlanGate component#23

Open
alikhere wants to merge 1 commit intomainfrom
test/add-plangate-test
Open

test(react): Add unit tests for PlanGate component#23
alikhere wants to merge 1 commit intomainfrom
test/add-plangate-test

Conversation

@alikhere
Copy link
Collaborator

@alikhere alikhere commented Mar 1, 2026

Summary

Adds unit tests for the PlanGate component in @storacha/console-toolkit-react, which was the only space component without a dedicated spec file.

It introduces 9 tests covering PlanGateProvider (context and actions), PlanGate.Gate (conditional rendering), PlanGate.Fallback (default and custom fallback UI), and PlanGate.Loading (loading state behavior).

Testing

pnpm testinpackages/react: 90 tests — all passing

@alikhere alikhere force-pushed the test/add-plangate-test branch from f3193c9 to 13966f2 Compare March 2, 2026 10:43
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