runAsyncTest<T> static method
Create a test that waits for all async operations
Implementation
static Future<T> runAsyncTest<T>(
Future<T> Function() test,
) async {
final result = await test();
await waitForAsync();
await waitForTransactions();
return result;
}