(children: any[], startIndex: number, source?: string, lineStarts?: number[])
| 921 | } |
| 922 | |
| 923 | function hasVisibleTextChild(children: any[], startIndex: number, source?: string, lineStarts?: number[]): boolean { |
| 924 | for (let i = startIndex; i < children.length; i++) { |
| 925 | const childText = getRenderedChildText(children[i], source, lineStarts); |
| 926 | if (/\S/.test(childText)) return true; |
| 927 | } |
| 928 | return false; |
| 929 | } |
| 930 | |
| 931 | function hasVisibleTextInEntries(entries: any[], source?: string, lineStarts?: number[]): boolean { |
| 932 | return entries.some((entry) => /\S/.test(getRenderedChildText(entry, source, lineStarts))); |
no test coverage detected