MCPcopy Index your code
hub / github.com/simstudioai/sim / resetForTesting

Function resetForTesting

apps/sim/lib/core/config/redis.ts:306–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304 * Reset all module-level state. Only intended for use in tests.
305 */
306export function resetForTesting(): void {
307 if (state.pingInterval) {
308 clearInterval(state.pingInterval)
309 state.pingInterval = null
310 }
311 state.client = null
312 state.pingFailures = 0
313 state.pingInFlight = false
314 state.reconnectListeners.length = 0
315}

Callers 1

redis.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected