You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instance Types should throw for invalid instances.
Expected function to throw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `Person`. , but it threw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `<<anonymous>>`.
Expected function to throw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `Person`. , but it threw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `<<anonymous>>`.
Expected function to throw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `Person`. , but it threw Invariant Violation: Invalid prop `testProp` supplied to `testComponent`, expected instance of `<<anonymous>>`.
The text was updated successfully, but these errors were encountered:
This is because we use fn.name (which is nonstandard) to get as good as possible invariants. In this case, I would be satisfied with a conditional in the test to set the right comparison string.
The text was updated successfully, but these errors were encountered: