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

Function assert

packages/tauri-db-sqlite-persistence/e2e/app/src/runtime-vitest.ts:187–192  ·  view source on GitHub ↗
(condition: boolean, failureMessage: string)

Source from the content-addressed store, hash-verified

185 negate = false,
186): Record<string, unknown> {
187 const assert = (condition: boolean, failureMessage: string): void => {
188 const shouldFail = negate ? condition : !condition
189 if (shouldFail) {
190 failExpectation(message, failureMessage)
191 }
192 }
193
194 const matchers = {
195 toBe(expected: unknown) {

Callers 12

toBeFunction · 0.70
toEqualFunction · 0.70
toBeGreaterThanFunction · 0.70
toBeGreaterThanOrEqualFunction · 0.70
toBeLessThanFunction · 0.70
toBeLessThanOrEqualFunction · 0.70
toBeTruthyFunction · 0.70
toBeDefinedFunction · 0.70
toBeNullFunction · 0.70
toContainFunction · 0.70
toHavePropertyFunction · 0.70
toHaveLengthFunction · 0.70

Calls 1

failExpectationFunction · 0.70

Tested by

no test coverage detected