resetForTesting static method

  1. @visibleForTesting
void resetForTesting()

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();