MCPcopy Create free account
hub / github.com/TanStack/db / check

Function check

packages/trailbase-db-collection/e2e/global-setup.ts:102–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 }, 60000) // 60 seconds timeout for startup
101
102 const check = async (): Promise<void> => {
103 try {
104 // Try the healthz endpoint first, then fall back to root
105 const res = await fetch(`${url}/api/healthcheck`)
106 if (res.ok) {
107 clearTimeout(timeout)
108 return resolve()
109 }
110 } catch {}
111
112 setTimeout(() => void check(), 500)
113 }
114
115 void check()
116 })

Callers 1

waitForTrailBaseFunction · 0.70

Calls 1

fetchFunction · 0.50

Tested by

no test coverage detected