Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/db
/ flushPromises
Function
flushPromises
packages/db/tests/utils.ts:399–400 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
397
398
// Utility to flush microtasks and promises
399
export
const
flushPromises = () =>
400
new
Promise((resolve) => setTimeout(resolve, 0))
401
402
/**
403
* Utility to suppress expected unhandled rejections in tests.
Callers
8
collection.test.ts
File · 0.90
collection-subscription.test.ts
File · 0.90
withExpectedRejection
Function · 0.70
createJoinTests
Function · 0.50
includes.test.ts
File · 0.50
live-query-collection.test.ts
File · 0.50
union-all.test.ts
File · 0.50
includes-lazy-loading.test.ts
File · 0.50
Calls
no outgoing calls
Tested by
1
createJoinTests
Function · 0.40