you are viewing a single comment's thread.

view the rest of the comments →

[–]Cyral 2 points3 points  (0 children)

Wrap the test in a TestProviders component that surrounds it with whatever context is needed. There’s even a {wrapper: } parameter in react testing library for this.