()
| 40 | }; |
| 41 | |
| 42 | export const isValkeyReachable = async (): Promise<boolean> => { |
| 43 | if (!RUN_VALKEY_NETWORK_TESTS) { |
| 44 | return false; |
| 45 | } |
| 46 | |
| 47 | if (availability !== null) { |
| 48 | return availability; |
| 49 | } |
| 50 | |
| 51 | availability = await canOpenTcpConnection(); |
| 52 | |
| 53 | return availability; |
| 54 | }; |
| 55 | |
| 56 | /** |
| 57 | * Skip-guard for Valkey-touching tests (cache, pubsub, SSE, OAuth state, |
no test coverage detected