toothpick-runtime / toothpick / Toothpick / reset

reset

open static fun reset(): Unit

Clears all scopes. Useful for testing and not getting any leak...

open static fun reset(scope: Scope): Unit

Resets the state of a single scope. Useful for automation testing when we want to reset the scope used to install test modules.

Parameters

scope - the scope we want to reset.