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

spool / ProbeCase

Interface: ProbeCase โ€‹

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

One in-game test: do something, wait, then check the world says what it should.

Properties โ€‹

after? โ€‹

optional after?: number

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

Ticks between setup and the check - long enough for whatever is being tested to happen.


expect โ€‹

expect: Detector

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

The condition that must hold. Any Detector, so Detect.all(...) composes.

Methods โ€‹

setup()? โ€‹

optional setup(ctx): void

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

Put the world into the state under test. Omit for a case that only observes.

Parameters โ€‹

ctx โ€‹

FunctionContext

Returns โ€‹

void


teardown()? โ€‹

optional teardown(ctx): void

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

Undoes setup. Always runs after the check.

Parameters โ€‹

ctx โ€‹

FunctionContext

Returns โ€‹

void

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