()
| 99 | |
| 100 | if (fontSize > 12 && distanceFromBottom < minBottomMargin) { |
| 101 | const getText = () => { |
| 102 | if (typeof el.text === 'string') return el.text; |
| 103 | if (Array.isArray(el.text)) return el.text.find(t => t.text)?.text || ''; |
| 104 | if (Array.isArray(el.items)) return el.items.find(item => item.text)?.text || ''; |
| 105 | return ''; |
| 106 | }; |
| 107 | const textPrefix = getText().substring(0, 50) + (getText().length > 50 ? '...' : ''); |
| 108 | |
| 109 | errors.push( |
no outgoing calls
no test coverage detected