Skip to content

Test: added unit tests for Box component - #105

Open
imayuss wants to merge 1 commit into
Karel-cz:mainfrom
imayuss:test/box-unit-test
Open

Test: added unit tests for Box component#105
imayuss wants to merge 1 commit into
Karel-cz:mainfrom
imayuss:test/box-unit-test

Conversation

@imayuss

@imayuss imayuss commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Short description of the fix

Added unit tests for the Box component covering children rendering, border/ padding/ style props & edge cases.

  • Added box.test.tsx following the block.test.tsx conventions.
  • Covered default rendering, custom/ nested children, empty children, hidden, default & custom padding , each border prop individually plus all-on/ all-off combinations, default borderRadius & boxSizing: border-box, removeDefaultStyle.
  • Covered custom style merging/ overriding, a darkMode smoke test, very large (5000 char) content & an optional snapshot.

Files changed: tests/ui/basic-components/box.test.tsx

Issue to close #69


  • Synced repo before changes?
  • Documentation updated (if needed)?
  • Functionality verified locally?

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.

[TEST] UI React: Add basic unit tests for Box component

1 participant