disposeAnyRunningTest function

Future<void> disposeAnyRunningTest()

If any NgTestFixture is currently executing, calls dispose on it.

Returns a future that completes when the test is destroyed.

This function is meant to be used within the tearDown function of package:test:

tearDown(() => disposeAnyRunningTest());

Implementation

Future<void> disposeAnyRunningTest() async {
  return activeTest?.dispose();
}