Resolve Invariant Violation error with snapshot test
Closed this issue · 1 comments
Dunn-Austen commented
- It's possible that the issue involves export/import of the Component in question
Dunn-Austen commented
The solution did involve our import/export logic, specifically involving the connect method. The test environment didn't recognize the methods related to the redux store. Fortunately, we aren't required to mock them out. Adding our exports to each of the individual methods involved in testing sidesteps the issues tied to the store/connect.