( name: string, debugSource?: MockDebugSource | null, parent?: MockFiberNode )
| 137 | } |
| 138 | |
| 139 | function createForwardRefFiber( |
| 140 | name: string, |
| 141 | debugSource?: MockDebugSource | null, |
| 142 | parent?: MockFiberNode |
| 143 | ): MockFiberNode { |
| 144 | const Component = function () {}; |
| 145 | Object.defineProperty(Component, "name", { value: name }); |
| 146 | |
| 147 | return { |
| 148 | _debugSource: debugSource, |
| 149 | _debugOwner: parent, |
| 150 | return: parent, |
| 151 | type: Component, |
| 152 | elementType: { |
| 153 | $$typeof: Symbol.for("react.forward_ref"), |
| 154 | displayName: name, |
| 155 | }, |
| 156 | tag: FiberTags.ForwardRef, |
| 157 | }; |
| 158 | } |
| 159 | |
| 160 | // ============================================================================= |
| 161 | // Mock Implementation of getSourceLocation |
no outgoing calls
no test coverage detected
searching dependent graphs…