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
{{ message }}
This repository has been archived by the owner on Apr 9, 2020. It is now read-only.
When a class has isComponentishClass pass on it, it is transformed, and that transform has a branch in it:
varSome_React_Class=(function(_React$Component){_inherits(Some_React_Class,_React$Component);functionSome_React_Class(){_classCallCheck(this,_Some_React_Class);_get(Object.getPrototypeOf(_Some_React_Class.prototype),"constructor",this).apply(this,arguments);}_createClass(Some_React_Class,[{key: "render",value: functionrender(){return_react2["default"].createElement("div");}}]);var_Some_React_Class=Some_React_Class;//This is the branch:Some_React_Class=_wrapComponent("_$Some_React_Class")(Some_React_Class)||Some_React_Class;returnSome_React_Class;})(_react2["default"].Component);exports["default"]=(0,_reactRedux.connect)(select)(Some_React_Class);
I've done a diff between a class which has a render function and one that doesn't - the difference seems to be the || Some_React_Class 5 lines from the end there.
I'm not sure how to trigger the other side of that OR, or to ignore it, so this stops me from getting 100% test coverage and makes me sad.
The text was updated successfully, but these errors were encountered:
On the other hand I can see a lot of other boiler plate that comes from Webpack that is ignored by isparta/istanbul so I wonder if it can be applied to this as well?
Also - I am only assuming it comes from this project - it is the only one in my node modules that has _wrapComponent in it and it has only started happening since I upgraded from react hot loader!
When a class has isComponentishClass pass on it, it is transformed, and that transform has a branch in it:
I've done a diff between a class which has a render function and one that doesn't - the difference seems to be the || Some_React_Class 5 lines from the end there.
I'm not sure how to trigger the other side of that OR, or to ignore it, so this stops me from getting 100% test coverage and makes me sad.
The text was updated successfully, but these errors were encountered: