@minecraft
    Preparing search index...

    Function setBeforeBatchCallback

    • World mutation Early execution

      Parameters

      • batchName: string

        Name of the batch of tests the callback will run before.

      • batchCallback: () => void

      Returns void

      Sets a callback that is called before the batch gets called. This will overwrite previously set callbacks for this batch.

      This function can throw errors.

      GameTestError