(error: unknown)
| 63 | } |
| 64 | |
| 65 | const isAuthenticationError = (error: unknown) => { |
| 66 | if (!(error instanceof Error)) return false |
| 67 | const message = error.message.toLowerCase() |
| 68 | return ( |
| 69 | message.includes('authentication failed') || |
| 70 | message.includes('statuscode: 401') |
| 71 | ) |
| 72 | } |
| 73 | |
| 74 | const runOrSkipOnAuthFailure = async <T>( |
| 75 | label: string, |
no outgoing calls
no test coverage detected