by thatswrong0 · 10y ago · 0 comments
export class MyComponent extends React.Component { ... }
export default SomeHOC(MyComponent)
And in your test simply import the non-hoc version:
import { MyComponent } from './mycomponent'
Now the HOC won't get in the way of your testing.
Edit: But he might be pointing to the testing of the actual HOCs/component decorating functions.