Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/store-conformance / ensure

Function: ensure()

ts
function ensure(
   condition, 
   checkId, 
   message): asserts condition;

Defined in: packages/store-conformance/src/types.ts:56

Assertion helper: conformance failures are plain Errors naming the check.

Parameters

ParameterType
conditionboolean
checkIdstring
messagestring

Returns

asserts condition