Alpha: this compiler is under active development and updates will break your projects. Not recommended for real use yet.
Skip to content

spool / Suite

Interface: Suite โ€‹

Defined in: plugins/probe/suite.ts:50

In-game tests, run with /function <ns>:probe/run.

Each case runs setup, waits after ticks, checks expect, then teardown. Cases run one after another so they never share the world. Results go to chat. Nothing runs on load or tick.

Methods โ€‹

case() โ€‹

case(name, spec): this

Defined in: plugins/probe/suite.ts:64

Add a case. No-op (and nothing retained) when the suite is disabled.

Parameters โ€‹

name โ€‹

string

spec โ€‹

ProbeCase

Returns โ€‹

this


run() โ€‹

run(): FunctionRef | undefined

Defined in: plugins/probe/suite.ts:73

Emits the suite and returns <root>/run, or undefined if disabled or empty. Call once, after every case.

Returns โ€‹

FunctionRef | undefined

Released under the MIT License ยท Credits
These docs were written with AI; the layout and every page have been reviewed by a human.