A collection of assertions for test and production code alike. These main exports are the following:
-
assert
: a collection of assertion methods with type guards when possible. Example:assert.isDefined()
-
check
: a collection of boolean check methods with type guards when possible. Example:check.isBoolean()
-
assertWrap
: a collection of assertions that return the asserted value if the assertion passes. ExamplesassertWrap.isArray()
-
checkWrap
: a collection of checks that return the checked value if it passes orundefined
. Example:checkWrap.isInfinite()
-
waitUntil
: a collection of assertion methods that try to wait until the assertion becomes true. Example:waitUntil.isTruthy()
See the docs under Assert
, or Package: @augment-vir/assert
here: https://electrovir.github.io/augment-vir