( text: string, startIndex: number, )
| 157 | } |
| 158 | |
| 159 | export function sliceStringFromIndex( |
| 160 | text: string, |
| 161 | startIndex: number, |
| 162 | ): StringSliceResult { |
| 163 | return { |
| 164 | value: text.slice(startIndex), |
| 165 | nextIndex: text.length, |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | export async function waitForFile(path: string, timeoutMs = 4000): Promise<void> { |
| 170 | const deadline = Date.now() + timeoutMs |
no outgoing calls
no test coverage detected