sẽ_sau_chuẩn_bị
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Registers an async after-each test hook.
Syntax: sẽ_sau_chuẩn_bị <block>
Category#
testing
Related#
Examples#
radix/corpus/postparabit/postparabit.fab (canonical · keyword)#
Registers an async after-each test hook.
# =============================================================================
# sẽ_sau_chuẩn_bị — Registers an async after-each test hook.
# =============================================================================
#
# What this teaches:
# • Async test hooks — `sẽ_sau_chuẩn_bị` registers an async cleanup hook that runs after each test case.
# • Async counterpart — Pairs with `sẽ_chuẩn_bị` (async before-each) and mirrors `sau_chuẩn_bị` (sync after-each).
#
# Common mistakes:
# • Confusing `sẽ_sau_chuẩn_bị` (async teardown) with `sẽ_chuẩn_bị` (async setup) — they run at opposite ends of each test.
#
# See also: sau_chuẩn_bị, sẽ_chuẩn_bị
# =============================================================================
# sẽ_sau_chuẩn_bị — async after-each hook
#
# GRAMMAR:
# hookDecl :← 'sẽ_sau_chuẩn_bị' block
#
# EXPECTED OUTPUT:
# No bắt_đầu — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test hook (whitelist: sẽ_sau_chuẩn_bị/postparabit.fab).
#
describe "async hooks" {
async_teardown {
print "after each async"
}
test "sample" {
assert true
}
}