MCPcopy Index your code
hub / github.com/TanStack/db / assertCollectionSize

Function assertCollectionSize

packages/db-collection-e2e/src/utils/assertions.ts:78–84  ·  view source on GitHub ↗
(
  collection: Collection<T>,
  expectedSize: number,
  message?: string,
)

Source from the content-addressed store, hash-verified

76 * Assert that a collection's size matches expected
77 */
78export function assertCollectionSize<T extends object>(
79 collection: Collection<T>,
80 expectedSize: number,
81 message?: string,
82) {
83 expect(collection.size, message).toBe(expectedSize)
84}
85
86/**
87 * Assert that all items in a collection match a predicate

Callers 2

Calls 1

expectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…