Appearance
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? โ
optionalafter?: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()? โ
optionalsetup(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()? โ
optionalteardown(ctx):void
Defined in: plugins/probe/suite.ts:26
Undoes setup. Always runs after the check.
Parameters โ
ctx โ
FunctionContext
Returns โ
void