resetForTesting static method
Alias of disposeAll with a clearer name for setUp blocks.
setUp(RefRegistry.resetForTesting) reads more naturally than
setUp(RefRegistry.disposeAll). Both clear every static.
Implementation
@visibleForTesting
static void resetForTesting() => disposeAll();