पश्चतैयारasync
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Registers an async after-each test hook.
Syntax: पश्चतैयारasync <block>
Category#
testing
Related#
Examples#
radix/corpus/postparabit/postparabit.fab (canonical · keyword)#
Registers an async after-each test hook.
# =============================================================================
# पश्चतैयारasync — Registers an async after-each test hook.
# =============================================================================
#
# What this teaches:
# • Async test hooks — `पश्चतैयारasync` registers an async cleanup hook that runs after each test case.
# • Async counterpart — Pairs with `पूर्वतैयारasync` (async before-each) and mirrors `पश्चतैयार` (sync after-each).
#
# Common mistakes:
# • Confusing `पश्चतैयारasync` (async teardown) with `पूर्वतैयारasync` (async setup) — they run at opposite ends of each test.
#
# See also: पश्चतैयार, पूर्वतैयारasync
# =============================================================================
# पश्चतैयारasync — async after-each hook
#
# GRAMMAR:
# hookDecl :← 'पश्चतैयारasync' block
#
# EXPECTED OUTPUT:
# No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test hook (whitelist: पश्चतैयारasync/postparabit.fab).
#
describe "async hooks" {
async_teardown {
print "after each async"
}
test "sample" {
assert true
}
}