(error: unknown)
| 101 | } |
| 102 | |
| 103 | function isSwiftVideoValidatorError(error: unknown): boolean { |
| 104 | if (!(error instanceof AppError)) { |
| 105 | return false; |
| 106 | } |
| 107 | if (error.code === 'TOOL_MISSING') { |
| 108 | return true; |
| 109 | } |
| 110 | return isSwiftVideoValidatorUnavailable( |
| 111 | String(error.details?.stderr ?? ''), |
| 112 | String(error.details?.stdout ?? ''), |
| 113 | ); |
| 114 | } |
| 115 | |
| 116 | export async function waitForPlayableVideo( |
| 117 | filePath: string, |
no test coverage detected