Renderingla

praeparabit

Registers an async before-each test hook.

Syntax: praeparabit <block>

Category

testing

Related

Examples

examples/corpus/praeparabit/praeparabit.fab (canonical · keyword)

Registers an async before-each test hook.

# praeparabit — async before-each hook
#
# GRAMMAR:
#   hookDecl :← 'praeparabit' block
#
# EXPECTED OUTPUT:
#   No incipit — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only test hook (whitelist: praeparabit/praeparabit.fab).
#

probandum "async hooks" {
    praeparabit {
        nota "before each async"
    }
    proba "sample" {
        adfirma verum
    }
}

Expected output: