Jest
React Native 45 Errors in Jest
At Build.com, a co-worker and I are in the process of updating our app to the most recent version of React Native, 0.45.1. We’re currently working to fix up our tests in Jest and I thought I’d share with you some issues that we’ve discovered.
Read MoreFixing the Jest Error, “Invariant Violation: addComponentAsRefTo”
I work on the Build.com React Native app. We’re currently on a push to dramatically increase our test coverage. Recently, I came across a bug that affects some, but not all, of our tests. Tests fail with the message: Invariant Violation: addComponentAsRefTo(…): Only a ReactOwner can have refs. You might be adding a ref to…
Read More