Skip to content

Commit

Permalink
Fix RadioButton test
Browse files Browse the repository at this point in the history
The tests with context were failing with the error: "Invariant
Violation: Hooks can only be called inside the body of a function
component".

The root cause is somwhere between styled-components v5+ which started
using React hooks and enzyme renderer. The cleanest workaround I have
found is enzymejs/enzyme#2176 (comment)
  • Loading branch information
simenko committed Sep 2, 2021
1 parent 631cbea commit c09fd49
Show file tree
Hide file tree
Showing 3 changed files with 1,656 additions and 358 deletions.
Loading

0 comments on commit c09fd49

Please sign in to comment.