testing library
What a test of a game reaches for and a game does not: hearing what the game told the tools watching it.
Functions
-
captureToolEvents(
ToolEventPoster heard) → void Function() -
Sends everything postToolEvent posts to
heardinstead of the VM service, until the returned function is called, which puts the VM service back.
Typedefs
-
ToolEventPoster
= void Function(String kind, Map<
String, Object?> data) - Posts what happened in a game, to whoever watches it from outside: the shape of postToolEvent, and of what a test hears it through.