For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /server-gametest/functions/setAfterBatchCallback.md.

Function: setAfterBatchCallback() experimental

setAfterBatchCallback(batchName, batchCallback): void

World Mutation Early Execution Beta

Parameters

batchName

string

回调将在其之后运行的测试批次名称。 Name of the batch of tests the callback will run after.

batchCallback

() => void

Returns

void

Remarks

设置一个在批次运行结束后被调用的回调函数。 这将覆盖先前为该批次设置的回调函数。 Sets a callback that is called after the batch gets called. This will overwrite previously set callbacks for this batch.

Throws

This function can throw errors.

GameTestError