diff --git a/jest/mockComponent.js b/jest/mockComponent.js index e94d467a6..fdd89e82d 100644 --- a/jest/mockComponent.js +++ b/jest/mockComponent.js @@ -17,6 +17,8 @@ module.exports = (moduleName, instanceMethods) => { typeof RealComponent === 'function' ? RealComponent : React.Component; const Component = class extends SuperClass { + static displayName = 'Component'; + render() { const name = RealComponent.displayName ||