( Component: ConcreteComponent, includeInferred = true, )
| 1215 | str.replace(classifyRE, c => c.toUpperCase()).replace(/[-_]/g, '') |
| 1216 | |
| 1217 | export function getComponentName( |
| 1218 | Component: ConcreteComponent, |
| 1219 | includeInferred = true, |
| 1220 | ): string | false | undefined { |
| 1221 | return isFunction(Component) |
| 1222 | ? Component.displayName || Component.name |
| 1223 | : Component.name || (includeInferred && Component.__name) |
| 1224 | } |
| 1225 | |
| 1226 | export function formatComponentName( |
| 1227 | instance: ComponentInternalInstance | null, |
no test coverage detected